From a5882916c8763588713fdd23ece8261cee43c3ec Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 29 Jan 2004 16:31:13 +0000 Subject: don't set the group to be read only until after the source is added. 2004-01-29 JP Rosevear * gui/migration.c (create_calendar_contact_source): don't set the group to be read only until after the source is added. svn path=/trunk/; revision=24523 --- calendar/ChangeLog | 5 +++++ calendar/gui/migration.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 0cb2b1fa11..78dddf9224 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-01-29 JP Rosevear + + * gui/migration.c (create_calendar_contact_source): don't set the + group to be read only until after the source is added. + 2004-01-29 JP Rosevear * gui/migration.c (migrate_ical_folder_to_source): migrate to a diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index face2434e1..5977b726d6 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -360,13 +360,14 @@ create_calendar_contact_source (ESourceList *source_list) /* Create the contacts group */ group = e_source_group_new (_("Contacts"), CONTACT_BASE_URI); - e_source_group_set_readonly (group, TRUE); e_source_list_add_group (source_list, group, -1); - + source = e_source_new (_("Birthdays & Anniversaries"), "/"); e_source_group_add_source (group, source, -1); g_object_unref (source); + e_source_group_set_readonly (group, TRUE); + return group; } -- cgit v1.2.3