summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>2013-03-05 17:36:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-19 13:51:24 +0000
commit37bfbd649398e56c3c792ddb26ce179f2fe819db (patch)
tree5894de72bec49cb1a4556c254d641095186cd7cf /bitbake/lib/bb/ui/crumbs
parent58115affd1d68f225007cdb7b50041fd08a6ad0d (diff)
downloadpoky-37bfbd649398e56c3c792ddb26ce179f2fe819db.tar.gz
bitbake: crumbs/recipeselectionpage: added events for the "Package Groups" "All recipes
" tabs and passing the information needed to the function created in the builder. (Bitbake rev: 60c3b561d66f9a43e696c402899141287ddb496e) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index fea92b5148..636762e40c 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -152,6 +152,12 @@ class RecipeSelectionPage (HobPage):
152 if page['name'] == "Included recipes": 152 if page['name'] == "Included recipes":
153 tab.connect("button-release-event", self.button_click_cb) 153 tab.connect("button-release-event", self.button_click_cb)
154 tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) 154 tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include)
155 if page['name'] == "Package Groups":
156 tab.connect("button-release-event", self.button_click_cb)
157 tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include)
158 if page['name'] == "All recipes":
159 tab.connect("button-release-event", self.button_click_cb)
160 tab.connect("cell-fadeinout-stopped", self.button_click_cb)
155 self.ins.append_page(tab, page['name'], page['tooltip']) 161 self.ins.append_page(tab, page['name'], page['tooltip'])
156 self.tables.append(tab) 162 self.tables.append(tab)
157 163
@@ -185,9 +191,19 @@ class RecipeSelectionPage (HobPage):
185 path, col = widget.table_tree.get_cursor() 191 path, col = widget.table_tree.get_cursor()
186 tree_model = widget.table_tree.get_model() 192 tree_model = widget.table_tree.get_model()
187 if path: # else activation is likely a removal 193 if path: # else activation is likely a removal
188 binb = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BINB) 194 properties = {'summary': '', 'name': '', 'version': '', 'revision': '', 'binb': '', 'group': '', 'license': '', 'homepage': '', 'bugtracker': '', 'description': ''}
189 if binb: 195 properties['summary'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_SUMMARY)
190 self.builder.show_binb_dialog(binb) 196 properties['name'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_NAME)
197 properties['version'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_VERSION)
198 properties['revision'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_REVISION)
199 properties['binb'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BINB)
200 properties['group'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_GROUP)
201 properties['license'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_LIC)
202 properties['homepage'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_HOMEPAGE)
203 properties['bugtracker'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BUGTRACKER)
204 properties['description'] = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_DESC)
205 self.builder.show_recipe_property_dialog(properties)
206
191 207
192 def build_packages_clicked_cb(self, button): 208 def build_packages_clicked_cb(self, button):
193 self.builder.build_packages() 209 self.builder.build_packages()