From f460c2f10d4bf5a995c392136c1dd561984b1167 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 20 Mar 2012 15:38:27 -0700 Subject: ui/crumbs/persistenttooltip: tweak borders Change the layout and borders so that the close button is flush with the edge of the tooltip window yet leave the contents with a small border such that text isn't flush with the window edge. (From Poky rev: 5a0891d144de5d3f73c51adef5a30492a679c66a) (Bitbake rev: f652d9d28d69a04bc9361599d173625378ac8d33) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/persistenttooltip.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/persistenttooltip.py b/bitbake/lib/bb/ui/crumbs/persistenttooltip.py index bae697e0d7..e9cc380b0a 100644 --- a/bitbake/lib/bb/ui/crumbs/persistenttooltip.py +++ b/bitbake/lib/bb/ui/crumbs/persistenttooltip.py @@ -64,7 +64,7 @@ class PersistentTooltip(gtk.Window): # We must be modal to ensure we grab focus when presented from a gtk.Dialog self.set_modal(True) - self.set_border_width(6) + self.set_border_width(0) self.set_position(gtk.WIN_POS_MOUSE) self.set_opacity(0.95) @@ -91,10 +91,14 @@ class PersistentTooltip(gtk.Window): self.set_default(self.button) + hbox = gtk.HBox(True, 6) + hbox.set_border_width(6) + hbox.show() + vbox.pack_end(hbox, True, True, 6) self.label = gtk.Label() self.label.set_markup(markup) self.label.show() - vbox.pack_end(self.label, True, True, 6) + hbox.pack_end(self.label, True, True, 6) self.connect("key-press-event", self._catch_esc_cb) -- cgit v1.2.3-54-g00ecf