[kupfer: 38/67] ui: Add padding aroung icon_view in object panes



commit 72fea90d060f73d20326b27ae771648692e1c834
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Mar 16 22:49:03 2011 +0100

    ui: Add padding aroung icon_view in object panes

 kupfer/ui/browser.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index fd4710f..45d24af 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -282,8 +282,11 @@ class MatchView (gtk.Bin):
 		self.icon_view = gtk.Image()
 
 		# infobox: icon and match name
+		icon_align = gtk.Alignment(0.5, 0.5, 0, 0)
+		icon_align.set_property("top-padding", 5)
+		icon_align.add(self.icon_view)
 		infobox = gtk.HBox()
-		infobox.pack_start(self.icon_view, True, True, 0)
+		infobox.pack_start(icon_align, True, True, 0)
 		box = gtk.VBox()
 		box.pack_start(infobox, True, False, 0)
 		self._editbox = gtk.HBox()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]