diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/persistenttooltip.py')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/persistenttooltip.py | 6 |
1 files changed, 5 insertions, 1 deletions
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() |
