From 6ec1118c92dcdf1f8377efde3ea575b5bc94412a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 29 Sep 2010 11:39:26 +0200 Subject: Bug #629462 - Tasks 'Due' filters don't work properly --- calendar/gui/e-cal-model.c | 13 +++++++++++-- calendar/gui/e-calendar-view.c | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 9cb8352c33..525e4fff33 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -226,6 +226,16 @@ cal_model_get_property (GObject *object, G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); } +static void +cal_model_constructed (GObject *object) +{ + e_extensible_load_extensions (E_EXTENSIBLE (object)); + + /* Chain up to parent's constructed() method. */ + if (G_OBJECT_CLASS (parent_class)->constructed) + G_OBJECT_CLASS (parent_class)->constructed (object); +} + static void cal_model_dispose (GObject *object) { @@ -302,6 +312,7 @@ e_cal_model_class_init (ECalModelClass *class) object_class = G_OBJECT_CLASS (class); object_class->set_property = cal_model_set_property; object_class->get_property = cal_model_get_property; + object_class->constructed = cal_model_constructed; object_class->dispose = cal_model_dispose; object_class->finalize = cal_model_finalize; @@ -465,8 +476,6 @@ e_cal_model_init (ECalModel *model) model->priv->notify_modified = NULL; model->priv->notify_removed = NULL; model->priv->notify_lock = g_mutex_new (); - - e_extensible_load_extensions (E_EXTENSIBLE (model)); } /* ETableModel methods */ diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 5b047999cf..94f4579788 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -353,6 +353,10 @@ calendar_view_constructed (GObject *object) * the GType accurately. See GInstanceInitFunc documentation * for details of the problem. */ e_extensible_load_extensions (E_EXTENSIBLE (object)); + + /* Chain up to parent's constructed() method. */ + if (G_OBJECT_CLASS (e_calendar_view_parent_class)->constructed) + G_OBJECT_CLASS (e_calendar_view_parent_class)->constructed (object); } static void -- cgit v1.2.3