summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>2013-03-05 17:36:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-19 13:51:23 +0000
commitf4bc22c856ca283a4cf2b97921b1af1ff3c0dcd9 (patch)
tree87e1294d5c2bcbaef655bd4eb8595e96f7a7d43e /bitbake/lib/bb
parentf988562bba59cb7dd84704a6b43ac060b5295fd0 (diff)
downloadpoky-f4bc22c856ca283a4cf2b97921b1af1ff3c0dcd9.tar.gz
bitbake: crumbs/builder: Replaced the function that displayed tooltips
replaced in the builder.py the function that displayed the tooltips with two functions that display property windows for recipes and packages pages. (Bitbake rev: bec3c1dc91118705149d00e5ec2bea08c8db75ed) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py35
1 files changed, 31 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index f6adabe42f..2a0cebab29 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -47,6 +47,7 @@ from bb.ui.crumbs.hig.deployimagedialog import DeployImageDialog
47from bb.ui.crumbs.hig.layerselectiondialog import LayerSelectionDialog 47from bb.ui.crumbs.hig.layerselectiondialog import LayerSelectionDialog
48from bb.ui.crumbs.hig.imageselectiondialog import ImageSelectionDialog 48from bb.ui.crumbs.hig.imageselectiondialog import ImageSelectionDialog
49from bb.ui.crumbs.hig.parsingwarningsdialog import ParsingWarningsDialog 49from bb.ui.crumbs.hig.parsingwarningsdialog import ParsingWarningsDialog
50from bb.ui.crumbs.hig.propertydialog import PropertyDialog
50 51
51hobVer = 20120808 52hobVer = 20120808
52 53
@@ -1202,11 +1203,37 @@ class Builder(gtk.Window):
1202 1203
1203 self.fast_generate_image_async(True) 1204 self.fast_generate_image_async(True)
1204 1205
1205 def show_binb_dialog(self, binb): 1206 def show_recipe_property_dialog(self, properties):
1206 markup = "<b>Brought in by:</b>\n%s" % binb 1207 information = {}
1207 ptip = PersistentTooltip(markup, self) 1208 dialog = PropertyDialog(title = properties["name"] +' '+ "properties",
1209 parent = self,
1210 information = properties,
1211 flags = gtk.DIALOG_DESTROY_WITH_PARENT
1212 | gtk.DIALOG_NO_SEPARATOR)
1208 1213
1209 ptip.show() 1214 dialog.set_modal(False)
1215
1216 button = dialog.add_button("Close", gtk.RESPONSE_NO)
1217 HobAltButton.style_button(button)
1218 button.connect("clicked", lambda w: dialog.destroy())
1219
1220 dialog.run()
1221
1222 def show_packages_property_dialog(self, properties):
1223 information = {}
1224 dialog = PropertyDialog(title = properties["name"] +' '+ "properties",
1225 parent = self,
1226 information = properties,
1227 flags = gtk.DIALOG_DESTROY_WITH_PARENT
1228 | gtk.DIALOG_NO_SEPARATOR)
1229
1230 dialog.set_modal(False)
1231
1232 button = dialog.add_button("Close", gtk.RESPONSE_NO)
1233 HobAltButton.style_button(button)
1234 button.connect("clicked", lambda w: dialog.destroy())
1235
1236 dialog.run()
1210 1237
1211 def show_layer_selection_dialog(self): 1238 def show_layer_selection_dialog(self):
1212 dialog = LayerSelectionDialog(title = "Layers", 1239 dialog = LayerSelectionDialog(title = "Layers",