diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-02-11 23:54:49 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-02-11 23:54:49 +0800 |
commit | fbe8356d739ea0af4c4bdf01fe74f00711178ab0 (patch) | |
tree | ba8a32ecee5e4c9c67594d9de3dee9620c4f9ff4 /calendar | |
parent | d9e81eafb3031c4ed5cb53ab99764f4decc6b8f6 (diff) | |
download | gsoc2013-evolution-fbe8356d739ea0af4c4bdf01fe74f00711178ab0.tar.gz gsoc2013-evolution-fbe8356d739ea0af4c4bdf01fe74f00711178ab0.tar.zst gsoc2013-evolution-fbe8356d739ea0af4c4bdf01fe74f00711178ab0.zip |
Fixes #53271
2004-02-11 Rodrigo Moya <rodrigo@ximian.com>
Fixes #53271
* gui/calendar-component.c (delete_calendar_cb): remove the source from
the GnomeCalendar widget also.
* gui/tasks-component.c (delete_task_list_cb): ditto.
svn path=/trunk/; revision=24704
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 6 | ||||
-rw-r--r-- | calendar/gui/e-tasks.c | 2 | ||||
-rw-r--r-- | calendar/gui/tasks-component.c | 2 |
4 files changed, 16 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 86f552bd32..b55d597b3a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2004-02-11 Rodrigo Moya <rodrigo@ximian.com> + + Fixes #53271 + + * gui/calendar-component.c (delete_calendar_cb): remove the source from + the GnomeCalendar widget also. + + * gui/tasks-component.c (delete_task_list_cb): ditto. + 2004-02-11 Kidd Wang <kidd.wang@sun.com> * gui/print.c: (print_date_label): guarantee we do have some timezone diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index fbbee6d377..bac26b5e78 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -129,8 +129,8 @@ update_uris_for_selection (CalendarComponent *calendar_component) if (!is_in_selection (selection, old_selected_source)) gnome_calendar_remove_event_source (priv->calendar, old_selected_source); - } - + } + for (l = selection; l; l = l->next) { ESource *selected_source = l->data; @@ -314,6 +314,8 @@ delete_calendar_cb (GtkWidget *widget, CalendarComponent *comp) selected_source)) e_source_selector_unselect_source (E_SOURCE_SELECTOR (priv->source_selector), selected_source); + else + gnome_calendar_remove_event_source (priv->calendar, selected_source); e_source_group_remove_source (e_source_peek_group (selected_source), selected_source); e_source_list_sync (priv->source_list, NULL); diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 7376e72cb3..5a0b4b56c3 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -443,7 +443,7 @@ set_timezone (ETasks *tasks) zone = calendar_config_get_icaltimezone (); for (l = priv->clients_list; l != NULL; l = l->next) { ECal *client = l->data; - + if (e_cal_get_load_state (client) == E_CAL_LOAD_LOADED) /* FIXME Error checking */ e_cal_set_default_timezone (client, zone, NULL); diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 294292e427..ec5d4c11f0 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -317,6 +317,8 @@ delete_task_list_cb (GtkWidget *widget, TasksComponent *comp) selected_source)) e_source_selector_unselect_source (E_SOURCE_SELECTOR (priv->source_selector), selected_source); + else + e_tasks_remove_todo_source (priv->tasks, selected_source); e_source_group_remove_source (e_source_peek_group (selected_source), selected_source); e_source_list_sync (priv->source_list, NULL); |