diff options
author | Bob Foerster <robert@erafx.com> | 2010-12-21 08:12:21 -0500 |
---|---|---|
committer | Bob Foerster <robert@erafx.com> | 2010-12-21 08:12:21 -0500 |
commit | 80e3d3a130b9dee72c11c6946bb5ff7705111d7c (patch) | |
tree | 170a6ea10d42df51af4bb6066efab7e19ec9c91a /lib/bb | |
parent | 24857e2ceb405916b0b0b3e75c6c2375a909b9ba (diff) | |
download | openembedded-core-contrib-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')
-rw-r--r-- | lib/bb/ui/depexp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/ui/depexp.py b/lib/bb/ui/depexp.py index a76e5bd2b9..485e02a584 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) |