aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2005-03-21 22:10:49 +0800
committerJP Rosevear <jpr@src.gnome.org>2005-03-21 22:10:49 +0800
commitc090f32fa53222b3d57b4633ffcf551801e4b7b7 (patch)
tree5723908d8a81cbda2e7de810e744e5bce095b5a5 /calendar/gui/calendar-component.c
parentc71a5eab3d678e6ff332c9b6a565627ba8113ecd (diff)
downloadgsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar.gz
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar.bz2
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar.lz
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar.xz
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.tar.zst
gsoc2013-evolution-c090f32fa53222b3d57b4633ffcf551801e4b7b7.zip
ensure the color and primary config are set on the personal source
2005-03-21 JP Rosevear <jpr@novell.com> * gui/tasks-component.c (ensure_sources): ensure the color and primary config are set on the personal source * gui/calendar-component.c (ensure_sources): ditto svn path=/trunk/; revision=29072
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index ea227f3211..55c4200115 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -216,6 +216,17 @@ ensure_sources (CalendarComponent *component)
personal_source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, personal_source, -1);
+ if (!calendar_config_get_primary_calendar () && !calendar_config_get_calendars_selected ()) {
+ GSList selected;
+
+ calendar_config_set_primary_calendar (e_source_peek_uid (personal_source));
+
+ selected.data = (gpointer)e_source_peek_uid (personal_source);
+ selected.next = NULL;
+ calendar_config_set_calendars_selected (&selected);
+ }
+
+ e_source_set_color (personal_source, 0xBECEDD);
}
if (!on_the_web) {