[evolution-data-server] e-cal-backend-util.c: Use e_source_registry_list_enabled().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] e-cal-backend-util.c: Use e_source_registry_list_enabled().
- Date: Sun, 17 Mar 2013 13:42:39 +0000 (UTC)
commit c256af9079a7e689fe84ce9211ccf8db9a2961b5
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Mar 9 19:03:31 2013 -0500
e-cal-backend-util.c: Use e_source_registry_list_enabled().
calendar/libedata-cal/e-cal-backend-util.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend-util.c b/calendar/libedata-cal/e-cal-backend-util.c
index fb2376c..2c7cd23 100644
--- a/calendar/libedata-cal/e-cal-backend-util.c
+++ b/calendar/libedata-cal/e-cal-backend-util.c
@@ -92,7 +92,7 @@ e_cal_backend_mail_account_is_valid (ESourceRegistry *registry,
extension_name = E_SOURCE_EXTENSION_MAIL_ACCOUNT;
- 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);
@@ -102,9 +102,6 @@ e_cal_backend_mail_account_is_valid (ESourceRegistry *registry,
gboolean match = FALSE;
gchar *address;
- if (!e_source_registry_check_enabled (registry, source))
- continue;
-
extension_name = E_SOURCE_EXTENSION_MAIL_ACCOUNT;
mail_account = e_source_get_extension (source, extension_name);
uid = e_source_mail_account_get_identity_uid (mail_account);
@@ -220,16 +217,13 @@ e_cal_backend_user_declined (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 (iter = list; iter != NULL; iter = g_list_next (iter)) {
ESource *source = E_SOURCE (iter->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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]