aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-08-23 14:59:49 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2007-08-23 14:59:49 +0800
commit7690fe3b47564b16c3e47d6ebadaa213e4297491 (patch)
treed3032de99a9bc636ed7e11bc8bbf5319af543db5 /calendar/gui/calendar-component.c
parent158e09129c78477afd7fbdb645c237c2a4ee6993 (diff)
downloadgsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar.gz
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar.bz2
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar.lz
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar.xz
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.tar.zst
gsoc2013-evolution-7690fe3b47564b16c3e47d6ebadaa213e4297491.zip
** Fix for bug #308636
2007-08-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #308636 * gui/dialogs/calendar-setup.c: (eccp_get_source_type): Add only source groups without property 'create_source=no'. * gui/dialogs/calendar-setup.c: (cs_load_sources): New helper function avoids code copying. * gui/dialogs/calendar-setup.c: (calendar_setup_edit_calendar), (calendar_setup_edit_task_list), (calendar_setup_edit_memo_list): Uses 'cs_load_sources'. * gui/calendar-component.c: (ensure_sources): Sets 'create_source=no' for contacts when not set before. svn path=/trunk/; revision=34068
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 7998b7bff6..575220af4f 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -161,6 +161,7 @@ ensure_sources (CalendarComponent *component)
ESource *personal_source;
ESource *birthdays_source;
char *base_uri, *base_uri_proto;
+ gchar *create_source;
on_this_computer = NULL;
on_the_web = NULL;
@@ -285,7 +286,12 @@ ensure_sources (CalendarComponent *component)
e_source_list_add_group (source_list, group, -1);
contacts = group;
}
-
+
+ create_source = e_source_group_get_property (contacts, "create_source");
+ if (!create_source)
+ e_source_group_set_property (contacts, "create_source", "no");
+ g_free (create_source);
+
if (!birthdays_source) {
birthdays_source = e_source_new (_("Birthdays & Anniversaries"), "/");
e_source_group_add_source (contacts, birthdays_source, -1);
@@ -300,7 +306,7 @@ ensure_sources (CalendarComponent *component)
e_source_list_add_group (source_list, group, -1);
weather = group;
}
-
+
component->priv->source_list = source_list;
if (personal_source)