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, 3 insertions, 10 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 93540b2a95..8a356935ac 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -140,8 +140,7 @@ class RecipeSelectionPage (HobPage):
140 tab.set_model(self.recipe_model.tree_model(filter)) 140 tab.set_model(self.recipe_model.tree_model(filter))
141 tab.connect("toggled", self.table_toggled_cb) 141 tab.connect("toggled", self.table_toggled_cb)
142 if self.pages[i]['name'] == "Included": 142 if self.pages[i]['name'] == "Included":
143 tab.connect("changed", self.tree_selection_cb) 143 tab.connect("row-activated", self.tree_row_activated_cb)
144
145 reset_button = gtk.Button("Reset") 144 reset_button = gtk.Button("Reset")
146 reset_button.connect("clicked", self.reset_clicked_cb) 145 reset_button.connect("clicked", self.reset_clicked_cb)
147 hbox = gtk.HBox(False, 5) 146 hbox = gtk.HBox(False, 5)
@@ -185,14 +184,8 @@ class RecipeSelectionPage (HobPage):
185 self.back_button.connect("clicked", self.back_button_clicked_cb) 184 self.back_button.connect("clicked", self.back_button_clicked_cb)
186 button_box.pack_start(self.back_button, expand=False, fill=False) 185 button_box.pack_start(self.back_button, expand=False, fill=False)
187 186
188 def tree_selection_cb(self, table, tree_selection, tree_view): 187 def tree_row_activated_cb(self, table, tree_model, path):
189 tree_model = tree_view.get_model() 188 binb = tree_model.get_value(tree_model.get_iter(path), RecipeListModel.COL_BINB)
190 path, column = tree_view.get_cursor()
191 if not path or column == tree_view.get_column(2):
192 return
193
194 it = tree_model.get_iter(path)
195 binb = tree_model.get_value(it, RecipeListModel.COL_BINB)
196 if binb: 189 if binb:
197 self.builder.show_binb_dialog(binb) 190 self.builder.show_binb_dialog(binb)
198 191