diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-06-14 19:01:57 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-06-14 19:01:57 +0800 |
commit | e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c (patch) | |
tree | c8d693bcfd659383bbcb81dd414d805f8efc1c19 /libemail-engine | |
parent | a83eda3085e9143143ed0b0e37f939774a5bd472 (diff) | |
download | gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar.gz gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar.bz2 gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar.lz gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar.xz gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.tar.zst gsoc2013-evolution-e439e17e2e14fc5a3a35924dddfdd4d8602c3d8c.zip |
Make em_utils_in_addressbook() cancellable
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/e-mail-session.c | 2 | ||||
-rw-r--r-- | libemail-engine/e-mail-utils.c | 5 | ||||
-rw-r--r-- | libemail-engine/e-mail-utils.h | 3 |
3 files changed, 6 insertions, 4 deletions
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, |