summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorBob Foerster <robert@erafx.com>2010-12-21 08:12:21 -0500
committerBob Foerster <robert@erafx.com>2010-12-21 08:12:21 -0500
commit80e3d3a130b9dee72c11c6946bb5ff7705111d7c (patch)
tree170a6ea10d42df51af4bb6066efab7e19ec9c91a /lib/bb/ui
parent24857e2ceb405916b0b0b3e75c6c2375a909b9ba (diff)
downloadbitbake-80e3d3a130b9dee72c11c6946bb5ff7705111d7c.tar.gz
depexp: add sorting of all package lists
Without sorting, it's very difficult to find the information you're looking for. Now, the lists are all sorted alphabetically for easy viewing. Signed-off-by: Bob Foerster <robert@erafx.com>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/depexp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/ui/depexp.py b/lib/bb/ui/depexp.py
index a76e5bd2b..485e02a58 100644
--- a/lib/bb/ui/depexp.py
+++ b/lib/bb/ui/depexp.py
@@ -82,7 +82,9 @@ class DepExplorer(gtk.Window):
# Create the data models
self.pkg_model = gtk.ListStore(gobject.TYPE_STRING)
+ self.pkg_model.set_sort_column_id(COL_PKG_NAME, gtk.SORT_ASCENDING)
self.depends_model = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING, gobject.TYPE_STRING)
+ self.depends_model.set_sort_column_id(COL_DEP_PACKAGE, gtk.SORT_ASCENDING)
pane = gtk.HPaned()
pane.set_position(250)
@@ -97,7 +99,6 @@ class DepExplorer(gtk.Window):
self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed)
column = gtk.TreeViewColumn("Package", gtk.CellRendererText(), text=COL_PKG_NAME)
self.pkg_treeview.append_column(column)
- column.set_sort_column_id(COL_PKG_NAME)
pane.add1(scrolled)
scrolled.add(self.pkg_treeview)