summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-08-17 13:14:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 12:07:42 +0100
commitff57794b513ac20c73eaf1f593e56eb1709ce5d9 (patch)
treebb32d9fbeeb99bf398e61bd4613fab7677b26e2f /bitbake
parent254e2debe5705f4fe34307378a8c1457e4327d1c (diff)
downloadpoky-ff57794b513ac20c73eaf1f593e56eb1709ce5d9.tar.gz
bitbake: 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. (Bitbake rev: 27ca94c33234f0ef9753f8285213dde2871a3fcf) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/taskexp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py
index 0d0f9f5a40..0e8e9d4cf8 100644
--- a/bitbake/lib/bb/ui/taskexp.py
+++ b/bitbake/lib/bb/ui/taskexp.py
@@ -63,7 +63,9 @@ class PackageReverseDepView(Gtk.TreeView):
63 self.current = None 63 self.current = None
64 self.filter_model = model.filter_new() 64 self.filter_model = model.filter_new()
65 self.filter_model.set_visible_func(self._filter) 65 self.filter_model.set_visible_func(self._filter)
66 self.set_model(self.filter_model) 66 self.sort_model = self.filter_model.sort_new_with_model()
67 self.sort_model.set_sort_column_id(COL_DEP_PARENT, Gtk.SortType.ASCENDING)
68 self.set_model(self.sort_model)
67 self.append_column(Gtk.TreeViewColumn(label, Gtk.CellRendererText(), text=COL_DEP_PARENT)) 69 self.append_column(Gtk.TreeViewColumn(label, Gtk.CellRendererText(), text=COL_DEP_PARENT))
68 70
69 def _filter(self, model, iter, data): 71 def _filter(self, model, iter, data):