aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 9be015d190..4e31f2c858 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -744,9 +744,16 @@ static void
day_view_dispose (GObject *object)
{
EDayView *day_view;
+ ECalModel *model;
gint day;
day_view = E_DAY_VIEW (object);
+ model = e_calendar_view_get_model (E_CALENDAR_VIEW (day_view));
+
+ if (model) {
+ g_signal_handlers_disconnect_by_data (model, day_view);
+ g_signal_handlers_disconnect_by_data (model, day_view->main_canvas);
+ }
e_day_view_cancel_layout (day_view);