diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 2 | ||||
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/persistenttooltip.py | 6 |
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() |
