aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-02-11 23:56:54 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-02-11 23:56:54 +0800
commit6648cf480a6288acb341b0c3e913c2cb2484f1f7 (patch)
tree42bfe502564662dbfefd1dd5adfb389c27ca75bc /calendar
parentfbe8356d739ea0af4c4bdf01fe74f00711178ab0 (diff)
downloadgsoc2013-evolution-6648cf480a6288acb341b0c3e913c2cb2484f1f7.tar.gz
gsoc2013-evolution-6648cf480a6288acb341b0c3e913c2cb2484f1f7.tar.zst
gsoc2013-evolution-6648cf480a6288acb341b0c3e913c2cb2484f1f7.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=24705
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/calendar-component.c6
-rw-r--r--calendar/gui/tasks-component.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index bac26b5e78..bc7353cae7 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -311,11 +311,11 @@ delete_calendar_cb (GtkWidget *widget, CalendarComponent *comp)
if (cal) {
if (e_cal_remove (cal, NULL)) {
if (e_source_selector_source_is_selected (E_SOURCE_SELECTOR (priv->source_selector),
- selected_source))
+ selected_source)) {
+ gnome_calendar_remove_event_source (priv->calendar, 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/tasks-component.c b/calendar/gui/tasks-component.c
index ec5d4c11f0..2fe0809c74 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -314,11 +314,11 @@ delete_task_list_cb (GtkWidget *widget, TasksComponent *comp)
if (cal) {
if (e_cal_remove (cal, NULL)) {
if (e_source_selector_source_is_selected (E_SOURCE_SELECTOR (priv->source_selector),
- selected_source))
+ selected_source)) {
+ e_tasks_remove_todo_source (priv->tasks, 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);