mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #17184: addressbook: cleanup
This commit is contained in:
@ -44,7 +44,7 @@
|
||||
#include "eds.h"
|
||||
#if EDS_CHECK_VERSION(3,5,3)
|
||||
#include <libedataserver/libedataserver.h>
|
||||
#else
|
||||
#else /* < EDS 3.5.3 */
|
||||
#include <libedataserver/e-source.h>
|
||||
#include <libebook/e-book-client.h>
|
||||
#endif
|
||||
@ -374,7 +374,7 @@ fill_books_data ()
|
||||
g_list_free_full(list, g_object_unref);
|
||||
}
|
||||
|
||||
#else
|
||||
#else /* EDS < 3.5.3 */
|
||||
|
||||
static book_data_t *
|
||||
create_book_data_from_source(ESource *source, ESourceGroup *group)
|
||||
@ -439,7 +439,7 @@ determine_default_addressbook()
|
||||
|
||||
#if EDS_CHECK_VERSION(3,5,3)
|
||||
{
|
||||
#else
|
||||
#else /* < EDS 3.5.3 */
|
||||
if (book_data->isdefault) {
|
||||
current_uri = book_data->uri;
|
||||
#endif
|
||||
@ -474,7 +474,7 @@ search_async_by_contacts (const char *query, int max_results, SearchAsyncHandler
|
||||
return;
|
||||
}
|
||||
|
||||
Search_Handler_And_Data *had = g_new (Search_Handler_And_Data, 1);
|
||||
Search_Handler_And_Data *had = g_new0(Search_Handler_And_Data, 1);
|
||||
|
||||
// initialize search data
|
||||
had->search_handler = handler;
|
||||
@ -488,7 +488,7 @@ search_async_by_contacts (const char *query, int max_results, SearchAsyncHandler
|
||||
ESource *source = e_source_registry_ref_source(registry, current_uid);
|
||||
EBookClient *book_client = e_book_client_new(source, NULL);
|
||||
g_object_unref(source);
|
||||
#else
|
||||
#else /* < EDS 3.5.3 */
|
||||
EBookClient *book_client = e_book_client_new_from_uri(current_uri, NULL);
|
||||
#endif
|
||||
if (!book_client)
|
||||
|
Reference in New Issue
Block a user