Patchwork [bitbake-devel,1/6] lib/bb/ui/crumbs/hobwidget: add padding to HobImageButton

login
register
mail settings
Submitter Joshua Lock
Date March 29, 2012, 12:30 a.m.
Message ID <2af0347d6002014c0d910579e2856262941ce989.1332980606.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/24785/
State Accepted
Commit a81f6a33cf1fa9fe869ac617f2d14d66e07009ff
Headers show

Comments

Joshua Lock - March 29, 2012, 12:30 a.m.
Add more padding between the icon and the text

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 lib/bb/ui/crumbs/hobwidget.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/hobwidget.py b/lib/bb/ui/crumbs/hobwidget.py
index 89ff23e..9bc09dd 100644
--- a/lib/bb/ui/crumbs/hobwidget.py
+++ b/lib/bb/ui/crumbs/hobwidget.py
@@ -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)