mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
lib/bb/ui/crumbs/hobwidget: add padding to HobImageButton
Add more padding between the icon and the text (Bitbake rev: a81f6a33cf1fa9fe869ac617f2d14d66e07009ff) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
19a5489f4c
commit
366bf755ac
@@ -281,7 +281,7 @@ class HobImageButton(gtk.Button):
|
||||
self.icon_path = icon_path
|
||||
self.hover_icon_path = hover_icon_path
|
||||
|
||||
hbox = gtk.HBox(False, 3)
|
||||
hbox = gtk.HBox(False, 6)
|
||||
hbox.show()
|
||||
self.add(hbox)
|
||||
self.icon = gtk.Image()
|
||||
@@ -298,7 +298,7 @@ class HobImageButton(gtk.Button):
|
||||
mark = "%s\n<span fgcolor='%s'><small>%s</small></span>" % (primary_text, colour, secondary_text)
|
||||
label.set_markup(mark)
|
||||
label.show()
|
||||
hbox.pack_start(label, True, True, 0)
|
||||
hbox.pack_start(label, True, True, 6)
|
||||
|
||||
def set_hover_icon_cb(self, widget, event):
|
||||
self.icon.set_from_file(self.hover_icon_path)
|
||||
|
||||
Reference in New Issue
Block a user