aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-02-11 23:54:49 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-02-11 23:54:49 +0800
commitfbe8356d739ea0af4c4bdf01fe74f00711178ab0 (patch)
treeba8a32ecee5e4c9c67594d9de3dee9620c4f9ff4 /calendar/gui/calendar-component.c
parentd9e81eafb3031c4ed5cb53ab99764f4decc6b8f6 (diff)
downloadgsoc2013-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/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c6
1 files changed, 4 insertions, 2 deletions
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);