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-view-private.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'calendar/modules/e-task-shell-view-private.c') diff --git a/calendar/modules/e-task-shell-view-private.c b/calendar/modules/e-task-shell-view-private.c index e1e14b2547..9c6a3a94bb 100644 --- a/calendar/modules/e-task-shell-view-private.c +++ b/calendar/modules/e-task-shell-view-private.c @@ -595,6 +595,9 @@ void e_task_shell_view_open_task (ETaskShellView *task_shell_view, ECalModelComponent *comp_data) { + EShell *shell; + EShellView *shell_view; + EShellWindow *shell_window; CompEditor *editor; CompEditorFlags flags = 0; ECalComponent *comp; @@ -605,6 +608,10 @@ e_task_shell_view_open_task (ETaskShellView *task_shell_view, g_return_if_fail (E_IS_TASK_SHELL_VIEW (task_shell_view)); g_return_if_fail (E_IS_CAL_MODEL_COMPONENT (comp_data)); + shell_view = E_SHELL_VIEW (task_shell_view); + shell_window = e_shell_view_get_shell_window (shell_view); + shell = e_shell_window_get_shell (shell_window); + uid = icalcomponent_get_uid (comp_data->icalcomp); editor = comp_editor_find_instance (uid); @@ -626,7 +633,7 @@ e_task_shell_view_open_task (ETaskShellView *task_shell_view, if (!e_cal_component_has_attendees (comp)) flags |= COMP_EDITOR_USER_ORG; - editor = task_editor_new (comp_data->client, flags); + editor = task_editor_new (comp_data->client, shell, flags); comp_editor_edit_comp (editor, comp); g_object_ref (comp); -- cgit v1.2.3