diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-10 08:11:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-17 20:49:11 +0800 |
commit | 4d58a800fa36927567f6c0d22617c260e8e7172b (patch) | |
tree | f4284e5454469b21c9c8772b1b6a35805c60bc1d /calendar | |
parent | 77fc81f8c9116f28016318aa1e00454abde970e8 (diff) | |
download | gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.gz gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.tar.zst gsoc2013-evolution-4d58a800fa36927567f6c0d22617c260e8e7172b.zip |
Use e_source_registry_list_enabled() where appropriate.
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/itip-utils.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 8ea7fe9d90..ad5c83cf28 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -430,16 +430,13 @@ itip_get_comp_attendee (ESourceRegistry *registry, } extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY; - list = e_source_registry_list_sources (registry, extension_name); + list = e_source_registry_list_enabled (registry, extension_name); for (link = list; link != NULL; link = g_list_next (link)) { ESourceExtension *extension; source = E_SOURCE (link->data); - if (!e_source_registry_check_enabled (registry, source)) - continue; - extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY; extension = e_source_get_extension (source, extension_name); @@ -1579,16 +1576,13 @@ find_enabled_identity (ESourceRegistry *registry, return NULL; extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY; - list = e_source_registry_list_sources (registry, extension_name); + list = e_source_registry_list_enabled (registry, extension_name); for (link = list; link != NULL; link = g_list_next (link)) { ESource *source = E_SOURCE (link->data); ESourceMailIdentity *extension; const gchar *address; - if (!e_source_registry_check_enabled (registry, source)) - continue; - extension = e_source_get_extension (source, extension_name); address = e_source_mail_identity_get_address (extension); |