diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-03-05 17:36:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-19 13:51:23 +0000 |
commit | f4bc22c856ca283a4cf2b97921b1af1ff3c0dcd9 (patch) | |
tree | 87e1294d5c2bcbaef655bd4eb8595e96f7a7d43e | |
parent | f988562bba59cb7dd84704a6b43ac060b5295fd0 (diff) | |
download | ast2050-yocto-poky-f4bc22c856ca283a4cf2b97921b1af1ff3c0dcd9.zip ast2050-yocto-poky-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>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 35 |
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 f6adabe..2a0ceba 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 from bb.ui.crumbs.hig.layerselectiondialog import LayerSelectionDialog from bb.ui.crumbs.hig.imageselectiondialog import ImageSelectionDialog from bb.ui.crumbs.hig.parsingwarningsdialog import ParsingWarningsDialog +from bb.ui.crumbs.hig.propertydialog import PropertyDialog hobVer = 20120808 @@ -1202,11 +1203,37 @@ class Builder(gtk.Window): self.fast_generate_image_async(True) - def show_binb_dialog(self, binb): - markup = "<b>Brought in by:</b>\n%s" % binb - ptip = PersistentTooltip(markup, self) + def show_recipe_property_dialog(self, properties): + information = {} + dialog = PropertyDialog(title = properties["name"] +' '+ "properties", + parent = self, + information = properties, + flags = gtk.DIALOG_DESTROY_WITH_PARENT + | gtk.DIALOG_NO_SEPARATOR) - ptip.show() + dialog.set_modal(False) + + button = dialog.add_button("Close", gtk.RESPONSE_NO) + HobAltButton.style_button(button) + button.connect("clicked", lambda w: dialog.destroy()) + + dialog.run() + + def show_packages_property_dialog(self, properties): + information = {} + dialog = PropertyDialog(title = properties["name"] +' '+ "properties", + parent = self, + information = properties, + flags = gtk.DIALOG_DESTROY_WITH_PARENT + | gtk.DIALOG_NO_SEPARATOR) + + dialog.set_modal(False) + + button = dialog.add_button("Close", gtk.RESPONSE_NO) + HobAltButton.style_button(button) + button.connect("clicked", lambda w: dialog.destroy()) + + dialog.run() def show_layer_selection_dialog(self): dialog = LayerSelectionDialog(title = "Layers", |