aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-shell-view-private.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-17 02:46:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-17 07:57:10 +0800
commitbaad2337a155c61a6fef6d998f029b00b587c12e (patch)
tree2ae539259d67e4013bb166971312d60c38e53d01 /modules/calendar/e-task-shell-view-private.c
parenta592d2f3eb30a38191e6e71bcbe8e0af7584778d (diff)
downloadgsoc2013-evolution-baad2337a155c61a6fef6d998f029b00b587c12e.tar.gz
gsoc2013-evolution-baad2337a155c61a6fef6d998f029b00b587c12e.tar.zst
gsoc2013-evolution-baad2337a155c61a6fef6d998f029b00b587c12e.zip
Remove client list param from e_task_table_process_completed_tasks().
ETaskTable can retrieve the client list from its internal ECalModel using e_cal_model_get_client_list().
Diffstat (limited to 'modules/calendar/e-task-shell-view-private.c')
-rw-r--r--modules/calendar/e-task-shell-view-private.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c
index 1ee793146c..a9af8227d5 100644
--- a/modules/calendar/e-task-shell-view-private.c
+++ b/modules/calendar/e-task-shell-view-private.c
@@ -48,26 +48,19 @@ static gboolean
task_shell_view_process_completed_tasks (ETaskShellView *task_shell_view)
{
ETaskShellContent *task_shell_content;
- ETaskShellSidebar *task_shell_sidebar;
ETaskTable *task_table;
- GList *clients;
task_shell_view->priv->update_completed_timeout = 0;
task_shell_content = task_shell_view->priv->task_shell_content;
task_table = e_task_shell_content_get_task_table (task_shell_content);
- task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;
- clients = e_task_shell_sidebar_get_clients (task_shell_sidebar);
-
- e_task_table_process_completed_tasks (task_table, clients, TRUE);
+ e_task_table_process_completed_tasks (task_table, TRUE);
/* Search query takes whether to show completed tasks into account,
* so if the preference has changed we need to update the query. */
e_shell_view_execute_search (E_SHELL_VIEW (task_shell_view));
- g_list_free (clients);
-
return FALSE;
}
@@ -145,23 +138,16 @@ static gboolean
task_shell_view_update_timeout_cb (ETaskShellView *task_shell_view)
{
ETaskShellContent *task_shell_content;
- ETaskShellSidebar *task_shell_sidebar;
ETaskTable *task_table;
ECalModel *model;
- GList *clients;
task_shell_content = task_shell_view->priv->task_shell_content;
task_table = e_task_shell_content_get_task_table (task_shell_content);
model = e_task_table_get_model (task_table);
- task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;
- clients = e_task_shell_sidebar_get_clients (task_shell_sidebar);
-
- e_task_table_process_completed_tasks (task_table, clients, FALSE);
+ e_task_table_process_completed_tasks (task_table, FALSE);
e_cal_model_tasks_update_due_tasks (E_CAL_MODEL_TASKS (model));
- g_list_free (clients);
-
return TRUE;
}