aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-name-selector-entry.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-10 08:11:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-03-17 20:49:11 +0800
commit4d58a800fa36927567f6c0d22617c260e8e7172b (patch)
treef4284e5454469b21c9c8772b1b6a35805c60bc1d /e-util/e-name-selector-entry.c
parent77fc81f8c9116f28016318aa1e00454abde970e8 (diff)
downloadgsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.gz
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.bz2
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.lz
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.xz
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.zst
gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.zip
Use e_source_registry_list_enabled() where appropriate.
Diffstat (limited to 'e-util/e-name-selector-entry.c')
-rw-r--r--e-util/e-name-selector-entry.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/e-util/e-name-selector-entry.c b/e-util/e-name-selector-entry.c
index 78b82f2cdb..12dddb83c1 100644
--- a/e-util/e-name-selector-entry.c
+++ b/e-util/e-name-selector-entry.c
@@ -2281,7 +2281,7 @@ setup_default_contact_store (ENameSelectorEntry *name_selector_entry)
client_cache = e_name_selector_entry_ref_client_cache (name_selector_entry);
registry = e_client_cache_ref_registry (client_cache);
- list = e_source_registry_list_sources (registry, extension_name);
+ list = e_source_registry_list_enabled (registry, extension_name);
for (iter = list; iter != NULL; iter = g_list_next (iter)) {
ESource *source = E_SOURCE (iter->data);
@@ -2292,10 +2292,6 @@ setup_default_contact_store (ENameSelectorEntry *name_selector_entry)
extension_name = E_SOURCE_EXTENSION_AUTOCOMPLETE;
extension = e_source_get_extension (source, extension_name);
- /* Skip disabled address books. */
- if (!e_source_registry_check_enabled (registry, source))
- continue;
-
/* Skip non-completion address books. */
if (!e_source_autocomplete_get_include_me (extension))
continue;