diff options
author | Shane Wang <shane.wang@intel.com> | 2012-02-29 22:15:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:51:31 +0000 |
commit | 7f6165735767fbe2e0017b2c7619746b14a78a65 (patch) | |
tree | 688a851502e6faced120ce6fc2152ca6f2101960 /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |
parent | b8582dc99660b5c3c666ccd0ec835b14170c0803 (diff) | |
download | poky-7f6165735767fbe2e0017b2c7619746b14a78a65.tar.gz |
Hob: fixed the issue in the brought-in-by dialog.
When typing any thing in the search entry, the brough-in-by dialog will be shown. That is because we call back "selection-changed" signal to pop up the dialog, which is not correct.
This patch is to fix the problem by using "row-activated" signal.
(Bitbake rev: ea56ae787153460166697bbcae92f51a77ca1571)
Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 13 |
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 | ||