diff options
author | Milan Crha <mcrha@redhat.com> | 2010-09-29 17:39:26 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-09-29 17:39:26 +0800 |
commit | 6ec1118c92dcdf1f8377efde3ea575b5bc94412a (patch) | |
tree | 8cf3c669abb95acd6cf4aab979c0a1181760bd54 /calendar | |
parent | c7b134377499a7bdc4a109cd1ec374ab5ac57a7b (diff) | |
download | gsoc2013-evolution-6ec1118c92dcdf1f8377efde3ea575b5bc94412a.tar.gz gsoc2013-evolution-6ec1118c92dcdf1f8377efde3ea575b5bc94412a.tar.zst gsoc2013-evolution-6ec1118c92dcdf1f8377efde3ea575b5bc94412a.zip |
Bug #629462 - Tasks 'Due' filters don't work properly
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/e-cal-model.c | 13 | ||||
-rw-r--r-- | calendar/gui/e-calendar-view.c | 4 |
2 files changed, 15 insertions, 2 deletions
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 @@ -227,6 +227,16 @@ cal_model_get_property (GObject *object, } 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) { ECalModelPrivate *priv; @@ -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 |