[gnome-todo] task-list-view: apply a tiny cleanup/optimisation
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-view: apply a tiny cleanup/optimisation
- Date: Thu, 27 Oct 2016 00:16:25 +0000 (UTC)
commit 482822b758f6a1c443d1e2014ee5ba5d5c66f7d1
Author: djb <db0451 gmail com>
Date: Thu Oct 27 00:44:41 2016 +0100
task-list-view: apply a tiny cleanup/optimisation
We have just verified that task == gtd_task_row_get_task (l->data), so
we can use the former for shorter code and avoidance of a function call.
https://bugzilla.gnome.org/show_bug.cgi?id=773561
src/gtd-task-list-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index dde9b60..e907907 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -800,7 +800,7 @@ remove_task (GtdTaskListView *view,
if (gtd_task_get_complete (task))
priv->complete_tasks--;
- g_signal_handlers_disconnect_by_func (gtd_task_row_get_task (l->data),
+ g_signal_handlers_disconnect_by_func (task,
task_completed_cb,
view);
gtd_task_row_destroy (l->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]