aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-17 03:12:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-17 07:57:10 +0800
commit4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a (patch)
tree6e59e70f05585fd33bd7d53a91c1a4aa3c981649
parentbaad2337a155c61a6fef6d998f029b00b587c12e (diff)
downloadgsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar.gz
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar.bz2
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar.lz
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar.xz
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.tar.zst
gsoc2013-evolution-4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a.zip
e_task_shell_view_delete_completed: Obtain client list from ECalModel.
-rw-r--r--modules/calendar/e-task-shell-view-private.c11
1 files 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);
}