diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-10-25 23:05:02 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-10-26 01:01:50 +0800 |
commit | aded0858c49c3b729564a35427e3affb514fffb9 (patch) | |
tree | fe15021104e6d8203d89a566ef519acfe52d5c67 /calendar | |
parent | e7981244a68c9d0b6b93d8c2697569668098b647 (diff) | |
download | gsoc2013-evolution-aded0858c49c3b729564a35427e3affb514fffb9.tar.gz gsoc2013-evolution-aded0858c49c3b729564a35427e3affb514fffb9.tar.zst gsoc2013-evolution-aded0858c49c3b729564a35427e3affb514fffb9.zip |
Prefer e_source_registry_check_enabled().
Prefer e_source_registry_check_enabled() over e_source_get_enabled()
for most instances where we want to exclude disabled data sources.
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/itip-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index b7b31dbf48..738baa3654 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -188,7 +188,7 @@ itip_get_fallback_identity (ESourceRegistry *registry) if (source == NULL) return NULL; - if (!e_source_get_enabled (source)) { + if (!e_source_registry_check_enabled (registry, source)) { g_object_unref (source); return NULL; } @@ -439,7 +439,7 @@ itip_get_comp_attendee (ESourceRegistry *registry, source = E_SOURCE (link->data); - if (!e_source_get_enabled (source)) + if (!e_source_registry_check_enabled (registry, source)) continue; extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY; @@ -1583,7 +1583,7 @@ find_enabled_identity (ESourceRegistry *registry, ESourceMailIdentity *extension; const gchar *address; - if (!e_source_get_enabled (source)) + if (!e_source_registry_check_enabled (registry, source)) continue; extension = e_source_get_extension (source, extension_name); |