diff options
Diffstat (limited to 'calendar/gui/e-cal-model-tasks.c')
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index feacc6d422..ca87150a7e 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -1224,9 +1224,13 @@ ecmt_fill_component_from_model (ECalModel *model, } ECalModel * -e_cal_model_tasks_new (void) +e_cal_model_tasks_new (ESourceRegistry *registry) { - return g_object_new (E_TYPE_CAL_MODEL_TASKS, NULL); + g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), NULL); + + return g_object_new ( + E_TYPE_CAL_MODEL_TASKS, + "registry", registry, NULL); } gboolean |