mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #13994: addressbook: issue warning but compile anyway if eds version >= 3.5.3
We still have to implement the missing functionality in terms of the new API
This commit is contained in:
@ -324,6 +324,9 @@ init_eds ()
|
||||
void
|
||||
fill_books_data ()
|
||||
{
|
||||
#if EDS_CHECK_VERSION(3,5,3)
|
||||
#warning FIXME ESource registry API is not supported yet
|
||||
#else
|
||||
ESourceList *source_list = e_source_list_new_for_gconf_default ("/apps/evolution/addressbook/sources");
|
||||
|
||||
if (source_list == NULL)
|
||||
@ -369,6 +372,7 @@ fill_books_data ()
|
||||
g_static_mutex_unlock(&books_data_mutex);
|
||||
|
||||
g_object_unref (source_list);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
@ -423,6 +427,9 @@ search_async_by_contacts (const char *query, int max_results, SearchAsyncHandler
|
||||
had->max_results_remaining = max_results;
|
||||
had->equery = create_query (query, current_test, (AddressBook_Config *) (user_data));
|
||||
|
||||
#if EDS_CHECK_VERSION(3,5,3)
|
||||
#warning FIXME: use EClient API, EBook API is deprecated
|
||||
#else
|
||||
EBook *book = e_book_new_from_uri(current_uri, NULL);
|
||||
if (!book)
|
||||
return;
|
||||
@ -432,6 +439,7 @@ search_async_by_contacts (const char *query, int max_results, SearchAsyncHandler
|
||||
#else
|
||||
e_book_async_open(book, TRUE, eds_async_open_callback, had);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user