diff options
author | Milan Crha <mcrha@redhat.com> | 2009-01-29 19:16:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-01-29 19:16:06 +0800 |
commit | 7261b445bc5995ebf04c64f35011b091b6e94638 (patch) | |
tree | e75d7bb0c69c58f11787df4f14001f6eb909bd82 /plugins/google-account-setup/google-source.c | |
parent | ced75797e19bf3331a6d5f68db462c91022586d0 (diff) | |
download | gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar.gz gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar.bz2 gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar.lz gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar.xz gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.tar.zst gsoc2013-evolution-7261b445bc5995ebf04c64f35011b091b6e94638.zip |
** Fix for bug #539467
2009-01-29 Milan Crha <mcrha@redhat.com>
** Fix for bug #539467
* plugins/webdav-account-setup/webdav-contacts-source.c: (find_webdav_group),
(ensure_webdav_contacts_source_group),
(remove_webdav_contacts_source_group):
* plugins/google-account-setup/google-contacts-source.h: (manage_google_group):
* plugins/google-account-setup/google-contacts-source.c: (manage_google_group),
(ensure_google_contacts_source_group),
(remove_google_contacts_source_group):
* plugins/google-account-setup/google-source.c: (ensure_google_source_group):
Find group by its base uri, not by a localized name.
svn path=/trunk/; revision=37165
Diffstat (limited to 'plugins/google-account-setup/google-source.c')
-rw-r--r-- | plugins/google-account-setup/google-source.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/plugins/google-account-setup/google-source.c b/plugins/google-account-setup/google-source.c index dd86d1723b..02f08da5e5 100644 --- a/plugins/google-account-setup/google-source.c +++ b/plugins/google-account-setup/google-source.c @@ -69,36 +69,17 @@ GtkWidget * plugin_google (EPlugin *epl, static void -ensure_google_source_group () +ensure_google_source_group (void) { ESourceList *slist; - ESourceGroup *group; - if (!e_cal_get_sources (&slist, E_CAL_SOURCE_TYPE_EVENT, NULL)) { g_warning ("Could not get calendar source list from GConf!"); return; } - group = e_source_list_peek_group_by_name (slist, _("Google")); - - if (group == NULL) - g_message ("\n Google Group Not found "); - - if (group == NULL) { - gboolean res; - group = e_source_group_new (_("Google"), "Google://"); - res = e_source_list_add_group (slist, group, -1); - - if (res == FALSE) { - g_warning ("Could not add Google source group!"); - } else { - e_source_list_sync (slist, NULL); - } - - g_object_unref (group); - g_object_unref (slist); - } + manage_google_group (slist, FALSE); + g_object_unref (slist); } int |