summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-04-16 16:53:28 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-16 12:56:25 +0100
commite966ae128a1dc924e7260c5b9889c6dedbd26c73 (patch)
treecdc8fa88c396a7382d8da9186b70c850f257d230 /bitbake/lib
parent6d7aae9e975b43131f5dec70e4ea232d25f0172f (diff)
downloadpoky-e966ae128a1dc924e7260c5b9889c6dedbd26c73.tar.gz
Hob: add the parent window to 'binb' popup window for managing it
The 'binb' popup window should be "set transient for" the main application window which they were spawned from. (Bitbake rev: a6f45b23851e22c7793d9a534fd197316bb5b9b8) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py2
-rw-r--r--bitbake/lib/bb/ui/crumbs/persistenttooltip.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 6b172d0aa9..dd3ea95a8f 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -899,7 +899,7 @@ class Builder(gtk.Window):
899 899
900 def show_binb_dialog(self, binb): 900 def show_binb_dialog(self, binb):
901 markup = "<b>Brought in by:</b>\n%s" % binb 901 markup = "<b>Brought in by:</b>\n%s" % binb
902 ptip = PersistentTooltip(markup) 902 ptip = PersistentTooltip(markup, self)
903 903
904 ptip.show() 904 ptip.show()
905 905
diff --git a/bitbake/lib/bb/ui/crumbs/persistenttooltip.py b/bitbake/lib/bb/ui/crumbs/persistenttooltip.py
index 4db3018cc7..b43d297bf7 100644
--- a/bitbake/lib/bb/ui/crumbs/persistenttooltip.py
+++ b/bitbake/lib/bb/ui/crumbs/persistenttooltip.py
@@ -35,7 +35,7 @@ class PersistentTooltip(gtk.Window):
35 35
36 markup: some Pango text markup to display in the tooltip 36 markup: some Pango text markup to display in the tooltip
37 """ 37 """
38 def __init__(self, markup): 38 def __init__(self, markup, parent_win=None):
39 gtk.Window.__init__(self, gtk.WINDOW_POPUP) 39 gtk.Window.__init__(self, gtk.WINDOW_POPUP)
40 40
41 # Inherit the system theme for a tooltip 41 # Inherit the system theme for a tooltip
@@ -76,6 +76,10 @@ class PersistentTooltip(gtk.Window):
76 # Ensure a reasonable minimum size 76 # Ensure a reasonable minimum size
77 self.set_geometry_hints(self, 100, 50) 77 self.set_geometry_hints(self, 100, 50)
78 78
79 # Set this window as a transient window for parent(main window)
80 if parent_win:
81 self.set_transient_for(parent_win)
82 self.set_destroy_with_parent(True)
79 # Draw our label and close buttons 83 # Draw our label and close buttons
80 hbox = gtk.HBox(False, 0) 84 hbox = gtk.HBox(False, 0)
81 hbox.show() 85 hbox.show()