Patchwork [bitbake-devel,3/3] hob: sort base image drop-down list

login
register
mail settings
Submitter Paul Eggleton
Date Sept. 11, 2012, 4:52 p.m.
Message ID <98eca12e39f253a65f0831bb30cef6cd48f1744f.1347382193.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/36337/
State New
Headers show

Comments

Paul Eggleton - Sept. 11, 2012, 4:52 p.m.
Sort the list of base images to make it easier to find a specific image
in the list. Note that "Create your own image" still remains the last
item in the list.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index 65c88cd..0cf9ebe 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -345,6 +345,7 @@  class ImageConfigurationPage (HobPage):
         # populate image combo
         filter = {RecipeListModel.COL_TYPE : ['image']}
         image_model = recipe_model.tree_model(filter)
+        image_model.set_sort_column_id(recipe_model.COL_NAME, gtk.SORT_ASCENDING)
         active = 0
         cnt = 1