aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-04-26 14:46:22 +0800
committerSrinivasa Ragavan <sragavan@gnome.org>2010-04-26 14:46:22 +0800
commit64b2fe23c4733a10181b213a380cd361518d008b (patch)
tree4e14339ffbf207558ff4d553d3de9ec7588caac3 /capplet
parentb54c869e2f4207294b7228fda92c016693105256 (diff)
downloadgsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar.gz
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar.bz2
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar.lz
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar.xz
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.tar.zst
gsoc2013-evolution-64b2fe23c4733a10181b213a380cd361518d008b.zip
Create Google group at instances when it is not created by default
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-account-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/capplet/settings/mail-account-view.c b/capplet/settings/mail-account-view.c
index f4b31beada..e343927336 100644
--- a/capplet/settings/mail-account-view.c
+++ b/capplet/settings/mail-account-view.c
@@ -245,6 +245,11 @@ setup_google_accounts (MailAccountView *mav)
slist = e_source_list_new_for_gconf (gconf, "/apps/evolution/calendar/sources");
sgrp = e_source_list_peek_group_by_base_uri (slist, "google://");
+ if (!sgrp) {
+ sgrp = e_source_list_ensure_group (slist, _("Google"), "google://", TRUE);
+ }
+
+ printf("Setting up Google Calendar: list:%p GoogleGrp: %p\n", slist, sgrp);
/* FIXME: Not sure if we should localize 'Calendar' */
calendar = e_source_new ("Calendar", "");
@@ -285,7 +290,8 @@ setup_google_accounts (MailAccountView *mav)
g_object_unref(slist);
g_object_unref(sgrp);
g_object_unref(calendar);
- }
+ } else
+ printf("Not setting up Google Calendar\n");
if (mav->priv->do_gcontacts) {
ESourceList *slist;