From d261d0b2e46d4793c2d54540782552846535eb60 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 25 Apr 2009 19:37:21 -0400 Subject: Begin migrating calendar settings to EShellSettings. Begin dismantling calendar-config.c and migrating calendar settings to EShellSettings. EShellSettings utilizes GObject properties instead of separate get/set/notify functions for each setting. --- calendar/modules/e-task-shell-module.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar/modules/e-task-shell-module.c') diff --git a/calendar/modules/e-task-shell-module.c b/calendar/modules/e-task-shell-module.c index c92e07ebea..5e35008541 100644 --- a/calendar/modules/e-task-shell-module.c +++ b/calendar/modules/e-task-shell-module.c @@ -213,11 +213,15 @@ task_module_cal_opened_cb (ECal *cal, ECalendarStatus status, GtkAction *action) { + EShell *shell; ECalComponent *comp; CompEditor *editor; CompEditorFlags flags = 0; const gchar *action_name; + /* FIXME Pass this in. */ + shell = e_shell_get_default (); + /* XXX Handle errors better. */ if (status != E_CALENDAR_STATUS_OK) return; @@ -230,7 +234,7 @@ task_module_cal_opened_cb (ECal *cal, flags |= COMP_EDITOR_USER_ORG; } - editor = task_editor_new (cal, flags); + editor = task_editor_new (cal, shell, flags); comp = cal_comp_task_new_with_defaults (cal); comp_editor_edit_comp (editor, comp); @@ -319,6 +323,7 @@ static gboolean task_module_handle_uri_cb (EShellModule *shell_module, const gchar *uri) { + EShell *shell; CompEditor *editor; CompEditorFlags flags = 0; ECal *client; @@ -337,6 +342,7 @@ task_module_handle_uri_cb (EShellModule *shell_module, GError *error = NULL; source_type = E_CAL_SOURCE_TYPE_TODO; + shell = e_shell_module_get_shell (shell_module); if (strncmp (uri, "task:", 5) != 0) return FALSE; @@ -437,7 +443,7 @@ task_module_handle_uri_cb (EShellModule *shell_module, if (!e_cal_component_has_attendees (comp)) flags |= COMP_EDITOR_USER_ORG; - editor = task_editor_new (client, flags); + editor = task_editor_new (client, shell, flags); comp_editor_edit_comp (editor, comp); g_object_unref (comp); -- cgit v1.2.3