diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-20 15:38:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 14:40:41 +0000 |
commit | f460c2f10d4bf5a995c392136c1dd561984b1167 (patch) | |
tree | 9efbc3c4c3417efc6ebc6b091ac3a424053523ee /bitbake/lib | |
parent | c9202eb042672237d30c66acb159c2b6b77d07f3 (diff) | |
download | poky-f460c2f10d4bf5a995c392136c1dd561984b1167.tar.gz |
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 <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/persistenttooltip.py | 8 |
1 files 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): | |||
64 | # We must be modal to ensure we grab focus when presented from a gtk.Dialog | 64 | # We must be modal to ensure we grab focus when presented from a gtk.Dialog |
65 | self.set_modal(True) | 65 | self.set_modal(True) |
66 | 66 | ||
67 | self.set_border_width(6) | 67 | self.set_border_width(0) |
68 | self.set_position(gtk.WIN_POS_MOUSE) | 68 | self.set_position(gtk.WIN_POS_MOUSE) |
69 | self.set_opacity(0.95) | 69 | self.set_opacity(0.95) |
70 | 70 | ||
@@ -91,10 +91,14 @@ class PersistentTooltip(gtk.Window): | |||
91 | 91 | ||
92 | self.set_default(self.button) | 92 | self.set_default(self.button) |
93 | 93 | ||
94 | hbox = gtk.HBox(True, 6) | ||
95 | hbox.set_border_width(6) | ||
96 | hbox.show() | ||
97 | vbox.pack_end(hbox, True, True, 6) | ||
94 | self.label = gtk.Label() | 98 | self.label = gtk.Label() |
95 | self.label.set_markup(markup) | 99 | self.label.set_markup(markup) |
96 | self.label.show() | 100 | self.label.show() |
97 | vbox.pack_end(self.label, True, True, 6) | 101 | hbox.pack_end(self.label, True, True, 6) |
98 | 102 | ||
99 | self.connect("key-press-event", self._catch_esc_cb) | 103 | self.connect("key-press-event", self._catch_esc_cb) |
100 | 104 | ||