summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-04-11 15:07:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-15 15:57:31 +0100
commit3cc69d34131351fc9eb8672a838002241af4d329 (patch)
tree73259cafbc673a91f986ae11d3083e89c72ec0fb /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
parent612c25c59718d3b7a259ae72430544c2f6e369fc (diff)
downloadast2050-yocto-poky-3cc69d34131351fc9eb8672a838002241af4d329.zip
ast2050-yocto-poky-3cc69d34131351fc9eb8672a838002241af4d329.tar.gz
bitbake: hob: Refine sorting mechanisms in Hob
-refine sorting functions for each column from recipe list page and package list page -sort correctly size column from packages list page -set default sroting order and secondary sorting criteria -make included on included recipes/packages no sortable [YOCTO #2346 & #4194] (Bitbake rev: 56822176e3d5e613654a46c983d2f979d7a9eebc) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index d1e5b69..8573b81 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -154,20 +154,21 @@ class RecipeSelectionPage (HobPage):
# append the tabs in order
for page in self.pages:
columns = page['columns']
- tab = HobViewTable(columns)
+ name = page['name']
+ tab = HobViewTable(columns, name)
search_names.append(page['search'])
search_tips.append(page['searchtip'])
filter = page['filter']
- sort_model = self.recipe_model.tree_model(filter)
+ sort_model = self.recipe_model.tree_model(filter, initial=True)
tab.set_model(sort_model)
- tab.connect("toggled", self.table_toggled_cb, page['name'])
- if page['name'] == "Included recipes":
+ tab.connect("toggled", self.table_toggled_cb, name)
+ if name == "Included recipes":
tab.connect("button-release-event", self.button_click_cb)
tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include)
- if page['name'] == "Package Groups":
+ if name == "Package Groups":
tab.connect("button-release-event", self.button_click_cb)
tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include)
- if page['name'] == "All recipes":
+ if name == "All recipes":
tab.connect("button-release-event", self.button_click_cb)
tab.connect("cell-fadeinout-stopped", self.button_click_cb)
self.ins.append_page(tab, page['name'], page['tooltip'])
@@ -241,7 +242,6 @@ class RecipeSelectionPage (HobPage):
properties['description'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_DESC)
self.builder.show_recipe_property_dialog(properties)
-
def build_packages_clicked_cb(self, button):
self.builder.build_packages()
OpenPOWER on IntegriCloud