diff options
author | Chris Toshok <toshok@ximian.com> | 2004-06-03 05:13:53 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-06-03 05:13:53 +0800 |
commit | ebe2afffe1e6e3afc6c367b2b3ea6675a7cec341 (patch) | |
tree | 62ed840d61d8ec4a7d81e75a66ce5422a55fe5eb /calendar/gui | |
parent | 03fd62545c0dabc123330696472d08ad978b955d (diff) | |
download | gsoc2013-evolution-ebe2afffe1e6e3afc6c367b2b3ea6675a7cec341.tar.gz gsoc2013-evolution-ebe2afffe1e6e3afc6c367b2b3ea6675a7cec341.tar.zst gsoc2013-evolution-ebe2afffe1e6e3afc6c367b2b3ea6675a7cec341.zip |
remove absolute_uri from ESource's. (migrate_tasks): same.
2004-06-02 Chris Toshok <toshok@ximian.com>
* gui/migration.c (migrate_calendars): remove absolute_uri from
ESource's.
(migrate_tasks): same.
svn path=/trunk/; revision=26159
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/migration.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index fa449d5f17..0c9494b194 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -783,6 +783,26 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis g_free (new_path); g_free (old_path); } + + /* we only need to do this next step if people ran + older versions of 1.5. We need to clear out the + absolute URI's that were assigned to ESources + during one phase of development, as they take + precedent over relative uris (but aren't updated + when editing an ESource). */ + if (minor == 5 && revision <= 11) { + GSList *g; + for (g = e_source_list_peek_groups (calendar_component_peek_source_list (component)); g; g = g->next) { + ESourceGroup *group = g->data; + GSList *s; + + for (s = e_source_group_peek_sources (group); s; s = s->next) { + ESource *source = s->data; + e_source_set_absolute_uri (source, NULL); + } + } + } + } e_source_list_sync (calendar_component_peek_source_list (component), NULL); @@ -889,6 +909,25 @@ migrate_tasks (TasksComponent *component, int major, int minor, int revision, GE g_free (new_path); g_free (old_path); } + + /* we only need to do this next step if people ran + older versions of 1.5. We need to clear out the + absolute URI's that were assigned to ESources + during one phase of development, as they take + precedent over relative uris (but aren't updated + when editing an ESource). */ + if (minor == 5 && revision <= 11) { + GSList *g; + for (g = e_source_list_peek_groups (tasks_component_peek_source_list (component)); g; g = g->next) { + ESourceGroup *group = g->data; + GSList *s; + + for (s = e_source_group_peek_sources (group); s; s = s->next) { + ESource *source = s->data; + e_source_set_absolute_uri (source, NULL); + } + } + } } e_source_list_sync (tasks_component_peek_source_list (component), NULL); |