diff options
author | Milan Crha <mcrha@redhat.com> | 2009-05-05 21:06:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-05-05 21:09:21 +0800 |
commit | 4a4ed147990cd1727b849c6e970c00dc56be88fc (patch) | |
tree | 8e1fce1ab3fc24920c471e4481b48a3ea84a23a6 /plugins | |
parent | efb327ab97afed53b05ae60b0a5df2b17bb8e767 (diff) | |
download | gsoc2013-evolution-4a4ed147990cd1727b849c6e970c00dc56be88fc.tar.gz gsoc2013-evolution-4a4ed147990cd1727b849c6e970c00dc56be88fc.tar.zst gsoc2013-evolution-4a4ed147990cd1727b849c6e970c00dc56be88fc.zip |
Do not use deprepcate e_source_list_peek_group_by_name
Missed one usage withing bug #569652
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/exchange-operations/exchange-contacts.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/exchange-operations/exchange-contacts.c b/plugins/exchange-operations/exchange-contacts.c index 3c9ade0f30..f04c9d6076 100644 --- a/plugins/exchange-operations/exchange-contacts.c +++ b/plugins/exchange-operations/exchange-contacts.c @@ -343,17 +343,19 @@ e_exchange_contacts_check (EPlugin *epl, EConfigHookPageCheckData *data) GConfClient *client; ESourceList *source_list = NULL; ESourceGroup *source_group = NULL; - GSList *groups; ESource *source; + EAccount *eaccount; /* GAL folder */ client = gconf_client_get_default (); source_list = e_source_list_new_for_gconf ( client, CONF_KEY_CONTACTS); g_object_unref (client); - groups = e_source_list_peek_groups (source_list); - if ((source_group = e_source_list_peek_group_by_name (source_list, - account->account_name))) { + eaccount = exchange_account_fetch (account); + g_return_val_if_fail (eaccount != NULL, FALSE); + g_return_val_if_fail (eaccount->uid != NULL, FALSE); + + if ((source_group = e_source_list_peek_group_by_properties (source_list, "account-uid", eaccount->uid, NULL))) { source = e_source_group_peek_source_by_name (source_group, e_source_peek_name (t->source)); if (e_source_group_peek_source_by_name (source_group, e_source_peek_name (t->source))) { |