aboutsummaryrefslogtreecommitdiffstats
path: root/modules
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 /modules
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 'modules')
-rw-r--r--modules/itip-formatter/itip-view.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index b73939239a..21bc036f60 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -3277,7 +3277,7 @@ find_to_address (ItipView *view,
return;
/* Look through the list of attendees to find the user's address */
- 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);
@@ -3286,9 +3286,6 @@ find_to_address (ItipView *view,
const gchar *address;
gchar *text;
- 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);
@@ -3338,7 +3335,7 @@ find_to_address (ItipView *view,
* accounts list again.
*/
- 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);
@@ -3347,9 +3344,6 @@ find_to_address (ItipView *view,
const gchar *address;
gchar *text;
- 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);
@@ -3433,16 +3427,13 @@ find_from_address (ItipView *view,
pitip->from_name = g_strdup (icalparameter_get_cn (param));
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);