[gnome-todo/wip/gbsneto/subtasks: 10/37] task-list-view: sort listbox when list changes



commit 64bff26452e8e60a88c4a4f54322e2ad06487bb8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Oct 10 21:19:14 2016 -0300

    task-list-view: sort listbox when list changes

 src/gtd-task-list-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index 7525ed9..e02a367 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -1184,6 +1184,10 @@ gtd_task_list_view_set_task_list (GtdTaskListView *view,
                                 "notify::color",
                                 G_CALLBACK (gtd_task_list_view__color_changed),
                                 view);
+      g_signal_connect_swapped (list,
+                                "task-updated",
+                                G_CALLBACK (gtk_list_box_invalidate_sort),
+                                priv->listbox);
     }
 }
 


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