diff options
Diffstat (limited to 'calendar/gui/e-cal-model-calendar.c')
-rw-r--r-- | calendar/gui/e-cal-model-calendar.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c index 452ce88b34..7c3529c80b 100644 --- a/calendar/gui/e-cal-model-calendar.c +++ b/calendar/gui/e-cal-model-calendar.c @@ -570,8 +570,12 @@ ecmc_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data, /** * e_cal_model_calendar_new */ -ECalModelCalendar * -e_cal_model_calendar_new (void) +ECalModel * +e_cal_model_calendar_new (EShellSettings *shell_settings) { - return g_object_new (E_TYPE_CAL_MODEL_CALENDAR, NULL); + g_return_val_if_fail (E_IS_SHELL_SETTINGS (shell_settings), NULL); + + return g_object_new ( + E_TYPE_CAL_MODEL_CALENDAR, + "shell-settings", shell_settings, NULL); } |