From 4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 16 Feb 2013 14:12:07 -0500 Subject: e_task_shell_view_delete_completed: Obtain client list from ECalModel. --- modules/calendar/e-task-shell-view-private.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c index a9af8227d5..87a843d622 100644 --- a/modules/calendar/e-task-shell-view-private.c +++ b/modules/calendar/e-task-shell-view-private.c @@ -508,7 +508,8 @@ exit: void e_task_shell_view_delete_completed (ETaskShellView *task_shell_view) { - ETaskShellSidebar *task_shell_sidebar; + ETaskShellContent *task_shell_content; + ECalModel *model; GList *list, *iter; const gchar *sexp; @@ -516,12 +517,14 @@ e_task_shell_view_delete_completed (ETaskShellView *task_shell_view) sexp = "(is-completed?)"; - task_shell_sidebar = task_shell_view->priv->task_shell_sidebar; - list = e_task_shell_sidebar_get_clients (task_shell_sidebar); + task_shell_content = task_shell_view->priv->task_shell_content; + model = e_task_shell_content_get_task_model (task_shell_content); e_task_shell_view_set_status_message ( task_shell_view, _("Expunging"), -1.0); + list = e_cal_model_get_client_list (model); + for (iter = list; iter != NULL; iter = iter->next) { ECalClient *client = E_CAL_CLIENT (iter->data); GSList *objects, *obj; @@ -562,6 +565,8 @@ e_task_shell_view_delete_completed (ETaskShellView *task_shell_view) e_cal_client_free_icalcomp_slist (objects); } + g_list_free (list); + e_task_shell_view_set_status_message (task_shell_view, NULL, -1.0); } -- cgit