summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-04-05 15:32:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:42 +0100
commit0aff9a5824eab6b6829907bfa75ce996554eebea (patch)
tree1c11323ec48bcef6dc402cd5eeab1cf04e1a4462 /bitbake/lib
parentdf64e7f884383068c25fca63126167d78944e731 (diff)
downloadpoky-0aff9a5824eab6b6829907bfa75ce996554eebea.tar.gz
selectionpage: show persistent tooltips on click
Requiring a double click to show the tooltips isn't very intuitive, add a callback to show the persistent tooltips on button release. (Bitbake rev: 80af7e72a9404044910fca7f9265e66354f747a6) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py13
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py13
2 files changed, 16 insertions, 10 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index b1a199c680..81ff76d153 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -117,7 +117,7 @@ class PackageSelectionPage (HobPage):
117 tab.set_model(self.package_model.tree_model(filter)) 117 tab.set_model(self.package_model.tree_model(filter))
118 tab.connect("toggled", self.table_toggled_cb) 118 tab.connect("toggled", self.table_toggled_cb)
119 if page['name'] == "Included": 119 if page['name'] == "Included":
120 tab.connect("row-activated", self.tree_row_activated_cb) 120 tab.connect("button-release-event", self.button_click_cb)
121 121
122 label = gtk.Label(page['name']) 122 label = gtk.Label(page['name'])
123 self.ins.append_page(tab, label) 123 self.ins.append_page(tab, label)
@@ -146,10 +146,13 @@ class PackageSelectionPage (HobPage):
146 self.back_button.connect("clicked", self.back_button_clicked_cb) 146 self.back_button.connect("clicked", self.back_button_clicked_cb)
147 button_box.pack_start(self.back_button, expand=False, fill=False) 147 button_box.pack_start(self.back_button, expand=False, fill=False)
148 148
149 def tree_row_activated_cb(self, table, tree_model, path): 149 def button_click_cb(self, widget, event):
150 binb = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_BINB) 150 path, col = widget.table_tree.get_cursor()
151 if binb: 151 tree_model = widget.table_tree.get_model()
152 self.builder.show_binb_dialog(binb) 152 if path: # else activation is likely a removal
153 binb = tree_model.get_value(tree_model.get_iter(path), PackageListModel.COL_BINB)
154 if binb:
155 self.builder.show_binb_dialog(binb)
153 156
154 def build_image_clicked_cb(self, button): 157 def build_image_clicked_cb(self, button):
155 self.builder.build_image() 158 self.builder.build_image()
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()