From e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Thu, 14 Jun 2012 13:01:57 +0200 Subject: Make em_utils_in_addressbook() cancellable --- libemail-engine/e-mail-session.c | 2 +- libemail-engine/e-mail-utils.c | 5 +++-- libemail-engine/e-mail-utils.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libemail-engine') diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c index a319a88815..4b4cdf2122 100644 --- a/libemail-engine/e-mail-session.c +++ b/libemail-engine/e-mail-session.c @@ -1329,7 +1329,7 @@ mail_session_lookup_addressbook (CamelSession *session, addr = camel_internet_address_new (); camel_address_decode ((CamelAddress *) addr, name); ret = em_utils_in_addressbook ( - registry, addr, mail_config_get_lookup_book_local_only ()); + registry, addr, mail_config_get_lookup_book_local_only (), NULL); g_object_unref (addr); return ret; diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c index 7fca5eb306..964de9810f 100644 --- a/libemail-engine/e-mail-utils.c +++ b/libemail-engine/e-mail-utils.c @@ -600,7 +600,8 @@ search_address_in_addressbooks (ESourceRegistry *registry, gboolean em_utils_in_addressbook (ESourceRegistry *registry, CamelInternetAddress *iaddr, - gboolean local_only) + gboolean local_only, + GCancellable *cancellable) { const gchar *addr; @@ -611,7 +612,7 @@ em_utils_in_addressbook (ESourceRegistry *registry, return FALSE; return search_address_in_addressbooks ( - registry, addr, local_only, NULL, NULL, NULL); + registry, addr, local_only, NULL, NULL, cancellable); } static gboolean diff --git a/libemail-engine/e-mail-utils.h b/libemail-engine/e-mail-utils.h index 8898204ef1..812dde2dfb 100644 --- a/libemail-engine/e-mail-utils.h +++ b/libemail-engine/e-mail-utils.h @@ -35,7 +35,8 @@ gboolean em_utils_folder_is_outbox (ESourceRegistry *registry, CamelFolder *folder); gboolean em_utils_in_addressbook (ESourceRegistry *registry, CamelInternetAddress *addr, - gboolean local_only); + gboolean local_only, + GCancellable *cancellable); CamelMimePart * em_utils_contact_photo (ESourceRegistry *registry, CamelInternetAddress *addr, gboolean local, -- cgit v1.2.3