aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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 /calendar
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 'calendar')
-rw-r--r--calendar/gui/e-task-table.c17
-rw-r--r--calendar/gui/e-task-table.h1
2 files changed, 10 insertions, 8 deletions
diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c
index f270d1f93f..e014fe117b 100644
--- a/calendar/gui/e-task-table.c
+++ b/calendar/gui/e-task-table.c
@@ -1843,18 +1843,17 @@ e_task_table_get_current_time (ECellDateEdit *ecde,
}
/**
- * e_task_table_hide_completed_tasks:
+ * e_task_table_process_completed_tasks:
* @table: A calendar table model.
- * @client_list: Clients List
*
- * Hide completed tasks.
+ * Process completed tasks.
*/
void
e_task_table_process_completed_tasks (ETaskTable *task_table,
- GList *clients_list,
gboolean config_changed)
{
ECalModel *model;
+ GList *client_list;
GCancellable *cancellable;
gchar *hide_sexp, *show_sexp;
@@ -1874,20 +1873,24 @@ e_task_table_process_completed_tasks (ETaskTable *task_table,
if (!(hide_sexp && show_sexp))
show_sexp = g_strdup ("(is-completed?)");
- /* Delete rows from model*/
+ client_list = e_cal_model_get_client_list (model);
+
+ /* Delete rows from model */
if (hide_sexp) {
task_table_get_object_list_async (
- clients_list, hide_sexp, cancellable,
+ client_list, hide_sexp, cancellable,
hide_completed_rows_ready, model);
}
/* Insert rows into model */
if (config_changed) {
task_table_get_object_list_async (
- clients_list, show_sexp, cancellable,
+ client_list, show_sexp, cancellable,
show_completed_rows_ready, model);
}
+ g_list_free (client_list);
+
g_free (hide_sexp);
g_free (show_sexp);
}
diff --git a/calendar/gui/e-task-table.h b/calendar/gui/e-task-table.h
index 617679c76b..cfe08b29dd 100644
--- a/calendar/gui/e-task-table.h
+++ b/calendar/gui/e-task-table.h
@@ -104,7 +104,6 @@ void e_task_table_hide_completed_tasks
gboolean config_changed);
void e_task_table_process_completed_tasks
(ETaskTable *table,
- GList *clients_list,
gboolean config_changed);
G_END_DECLS