summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index d70fe5284b..019f9f345e 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -148,7 +148,7 @@ class RecipeSelectionPage (HobPage):
148 tab.set_model(self.recipe_model.tree_model(filter)) 148 tab.set_model(self.recipe_model.tree_model(filter))
149 tab.connect("toggled", self.table_toggled_cb) 149 tab.connect("toggled", self.table_toggled_cb)
150 if page['name'] == "Included": 150 if page['name'] == "Included":
151 tab.connect("row-activated", self.tree_row_activated_cb) 151 tab.connect("button-release-event", self.button_click_cb)
152 152
153 label = gtk.Label(page['name']) 153 label = gtk.Label(page['name'])
154 self.ins.append_page(tab, label) 154 self.ins.append_page(tab, label)
@@ -177,10 +177,13 @@ class RecipeSelectionPage (HobPage):
177 self.back_button.connect("clicked", self.back_button_clicked_cb) 177 self.back_button.connect("clicked", self.back_button_clicked_cb)
178 button_box.pack_start(self.back_button, expand=False, fill=False) 178 button_box.pack_start(self.back_button, expand=False, fill=False)
179 179
180 def tree_row_activated_cb(self, table, tree_model, path): 180 def button_click_cb(self, widget, event):
181 binb = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BINB) 181 path, col = widget.table_tree.get_cursor()
182 if binb: 182 tree_model = widget.table_tree.get_model()
183 self.builder.show_binb_dialog(binb) 183 if path: # else activation is likely a removal
184 binb = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BINB)
185 if binb:
186 self.builder.show_binb_dialog(binb)
184 187
185 def build_packages_clicked_cb(self, button): 188 def build_packages_clicked_cb(self, button):
186 self.builder.build_packages() 189 self.builder.build_packages()