[gnome-todo] list-view: hear newly added tasks' completed property



commit 2958fda8e7cc464cefd22015e8b8e9474397adfc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jun 24 15:43:34 2015 -0300

    list-view: hear newly added tasks' completed property

 src/gtd-list-view.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-list-view.c b/src/gtd-list-view.c
index bf30127..4c80658 100644
--- a/src/gtd-list-view.c
+++ b/src/gtd-list-view.c
@@ -451,6 +451,11 @@ gtd_list_view__task_added (GtdTaskList *list,
 
   /* Add the new task to the list */
   gtd_list_view__add_task (GTD_LIST_VIEW (user_data), task);
+
+  g_signal_connect (task,
+                    "notify::complete",
+                    G_CALLBACK (gtd_list_view__task_completed),
+                    user_data);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]