Skip to content
Snippets Groups Projects
Commit 383665cc authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3854] Rewrite addressbook almost completely

parent 336a0500
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ addressbook_search (GtkEntry* entry)
// search_by_contacts(gtk_entry_get_text(GTK_ENTRY(entry)), addressbook_config->max_results, &handler_async_search, addressbook_config);
search_async_by_contacts (gtk_entry_get_text (GTK_ENTRY (entry)), addressbook_config->max_results, &handler_async_search, addressbook_config);
// addressbook_config_books
/*
if (strlen(query) >= 3) {
......@@ -165,6 +166,8 @@ addressbook_init()
{
DEBUG ("Addressbook: Initialize addressbook");
fill_books_data();
// Call books initialization
init (&addressbook_config_books);
}
......
This diff is collapsed.
......@@ -71,6 +71,7 @@ typedef struct _Hit {
typedef struct {
gchar *uid;
gchar *name;
gchar *uri;
gboolean active;
EBook *ebook;
} book_data_t;
......@@ -102,6 +103,12 @@ typedef void
void
init (OpenAsyncHandler);
/**
* Fill list of addressbooks
*/
void
fill_books_data (void);
/**
* Asynchronous search function (without the get_contacts method)
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment