lib/bb/ui/crumbs/persistenttooltip: ensure a reasonable minimum size

The persistent tooltip looks a little weird when it's too small, request
that the toolkit and WM give it a reasonable minimum size.

(Bitbake rev: 637ea3671dda9c5a1065f992fd9ee87d63043cf4)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock 2012-03-23 17:23:05 -07:00 committed by Richard Purdie
parent 188cf893dd
commit 2206679669
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ class PersistentTooltip(gtk.Window):
self.set_position(gtk.WIN_POS_MOUSE)
self.set_opacity(0.95)
# Ensure a reasonable minimum size
self.set_geometry_hints(self, 100, 50)
# Draw our label and close buttons
hbox = gtk.HBox(False, 0)
hbox.show()