[oe-commits] [bitbake] 06/06: bitbake: ui: Sort 'Dependent tasks' in taskexp

git at git.openembedded.org git at git.openembedded.org
Tue Aug 22 19:00:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 49ee9e5d1858a7140a0e13b2bb631c672b15fc7e
Author: Jussi Kukkonen <jussi.kukkonen at intel.com>
AuthorDate: Thu Aug 17 13:14:54 2017 +0300

    bitbake: ui: Sort 'Dependent tasks' in taskexp
    
    The underlying model is already sorted for use in the other view,
    add a sorting model for the 'Dependent Tasks' view.
    
    Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/taskexp.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/bb/ui/taskexp.py b/lib/bb/ui/taskexp.py
index 0d0f9f5..0e8e9d4 100644
--- a/lib/bb/ui/taskexp.py
+++ b/lib/bb/ui/taskexp.py
@@ -63,7 +63,9 @@ class PackageReverseDepView(Gtk.TreeView):
         self.current = None
         self.filter_model = model.filter_new()
         self.filter_model.set_visible_func(self._filter)
-        self.set_model(self.filter_model)
+        self.sort_model = self.filter_model.sort_new_with_model()
+        self.sort_model.set_sort_column_id(COL_DEP_PARENT, Gtk.SortType.ASCENDING)
+        self.set_model(self.sort_model)
         self.append_column(Gtk.TreeViewColumn(label, Gtk.CellRendererText(), text=COL_DEP_PARENT))
 
     def _filter(self, model, iter, data):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list