From b405d60ed4196ea2ceb1e70a013e2b48e3f85d58 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 28 Sep 2004 15:57:33 +0000 Subject: Fixes #61766 2004-09-28 JP Rosevear Fixes #61766 * gui/migration.c (create_calendar_contact_source): set a color for the contacts (create_calendar_sources): set a color for the personal source and make in primary and default if nothing else is either (create_task_sources): ditto for tasks personal source svn path=/trunk/; revision=27414 --- calendar/ChangeLog | 16 ++++++++++++++++ calendar/gui/migration.c | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 54f9f359a3..de319a987a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,13 @@ +2004-09-28 JP Rosevear + + Fixes #61766 + + * gui/migration.c (create_calendar_contact_source): set a color + for the contacts + (create_calendar_sources): set a color for the personal source and + make in primary and default if nothing else is either + (create_task_sources): ditto for tasks personal source + 2004-09-24 Rodrigo Moya Fixes #65599 @@ -7,6 +17,12 @@ * gui/e-pub-utils.c (e_pub_publish): use auth_new_cal_from_source() instead of auth_new_cal_from_uri(). +2004-09-24 JP Rosevear + + Fixes #64955, Vincent Noel + + * libecal/e-cal.c (e_cal_get_alarms_in_range): fix c99-ism + 2004-09-24 JP Rosevear Fixes #66344 diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index 6c2cd1b969..fa1b4bdeeb 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -46,6 +46,7 @@ #include #include #include +#include "calendar-config.h" #include "calendar-config-keys.h" #include "migration.h" @@ -381,6 +382,7 @@ create_calendar_contact_source (ESourceList *source_list) e_source_group_add_source (group, source, -1); g_object_unref (source); + e_source_set_color (source, 0xFED4D3); e_source_group_set_readonly (group, TRUE); return group; @@ -457,7 +459,18 @@ create_calendar_sources (CalendarComponent *component, /* Create the default Person calendar */ ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI); e_source_group_add_source (*on_this_computer, source, -1); + + if (!calendar_config_get_primary_calendar () && !calendar_config_get_calendars_selected ()) { + GSList selected; + + calendar_config_set_primary_calendar (e_source_peek_uid (source)); + selected.data = (gpointer)e_source_peek_uid (source); + selected.next = NULL; + calendar_config_set_calendars_selected (&selected); + } + + e_source_set_color (source, 0xBECEDD); *personal_source = source; } @@ -540,6 +553,17 @@ create_task_sources (TasksComponent *component, ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI); e_source_group_add_source (*on_this_computer, source, -1); + if (!calendar_config_get_primary_tasks () && !calendar_config_get_tasks_selected ()) { + GSList selected; + + calendar_config_set_primary_tasks (e_source_peek_uid (source)); + + selected.data = (gpointer)e_source_peek_uid (source); + selected.next = NULL; + calendar_config_set_tasks_selected (&selected); + } + + e_source_set_color (source, 0xBECEDD); *personal_source = source; } -- cgit