diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-03-05 17:36:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-19 13:51:24 +0000 |
commit | 58115affd1d68f225007cdb7b50041fd08a6ad0d (patch) | |
tree | d9c5610a3ed610ae5091ba273b7b6a81d5a0b5f3 | |
parent | 3c5737a7178c6d84f8113398a518164b2814194f (diff) | |
download | poky-58115affd1d68f225007cdb7b50041fd08a6ad0d.tar.gz |
bitbake: crumbs/packageselectionpage: added event for the "All packages" tab
and passing the information needed to the function created in the builder.
(Bitbake rev: 840bbdbc973e72d4305c21bcc26c008a6dc39456)
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index 4544543c4b..6f9a4e2a7a 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |||
@@ -142,6 +142,9 @@ class PackageSelectionPage (HobPage): | |||
142 | if page['name'] == "Included packages": | 142 | if page['name'] == "Included packages": |
143 | tab.connect("button-release-event", self.button_click_cb) | 143 | tab.connect("button-release-event", self.button_click_cb) |
144 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) | 144 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) |
145 | if page['name'] == "All packages": | ||
146 | tab.connect("button-release-event", self.button_click_cb) | ||
147 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) | ||
145 | self.ins.append_page(tab, page['name'], page['tooltip']) | 148 | self.ins.append_page(tab, page['name'], page['tooltip']) |
146 | self.tables.append(tab) | 149 | self.tables.append(tab) |
147 | 150 | ||
@@ -175,9 +178,13 @@ class PackageSelectionPage (HobPage): | |||
175 | path, col = widget.table_tree.get_cursor() | 178 | path, col = widget.table_tree.get_cursor() |
176 | tree_model = widget.table_tree.get_model() | 179 | tree_model = widget.table_tree.get_model() |
177 | if path: # else activation is likely a removal | 180 | if path: # else activation is likely a removal |
178 | binb = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_BINB) | 181 | properties = {'binb': '' , 'name': '', 'size':'', 'recipe':''} |
179 | if binb: | 182 | properties['binb'] = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_BINB) |
180 | self.builder.show_binb_dialog(binb) | 183 | properties['name'] = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_NAME) |
184 | properties['size'] = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_SIZE) | ||
185 | properties['recipe'] = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_RCP) | ||
186 | |||
187 | self.builder.show_recipe_property_dialog(properties) | ||
181 | 188 | ||
182 | def open_log_clicked_cb(self, button, log_file): | 189 | def open_log_clicked_cb(self, button, log_file): |
183 | if log_file: | 190 | if log_file: |