From aded0858c49c3b729564a35427e3affb514fffb9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 25 Oct 2012 11:05:02 -0400 Subject: 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. --- calendar/gui/itip-utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar') 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); -- cgit