[evolution] e_task_shell_view_delete_completed: Obtain client list from ECalModel.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e_task_shell_view_delete_completed: Obtain client list from ECalModel.
- Date: Sun, 17 Feb 2013 00:03:01 +0000 (UTC)
commit 4246dc65e4c7dc12bcb7a711cfa5c52bfa50fe3a
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Feb 16 14:12:07 2013 -0500
e_task_shell_view_delete_completed: Obtain client list from ECalModel.
modules/calendar/e-task-shell-view-private.c | 11 ++++++++---
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 a9af822..87a843d 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]