From 7156e67aa20f9968a386686c71ae70ae8dc35d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Wed, 17 Apr 2013 16:56:59 -0300 Subject: [PATCH] Color Palette: get back horizontal padding - SL #4325 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PaletteWindow lost the horizontal padding when it started to be used as replacement of palette menus. So now each implementation has to add the padding. Signed-off-by: Manuel QuiƱones --- src/sugar3/graphics/colorbutton.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sugar3/graphics/colorbutton.py b/src/sugar3/graphics/colorbutton.py index 3f205ff7..1d2faf8d 100644 --- a/src/sugar3/graphics/colorbutton.py +++ b/src/sugar3/graphics/colorbutton.py @@ -255,7 +255,12 @@ class _ColorPalette(Palette): self.connect('popdown', self.__popdown_cb) self._picker_hbox = Gtk.HBox() - self.set_content(self._picker_hbox) + alignment = Gtk.Alignment() + alignment.set_padding(0, 0, style.DEFAULT_SPACING, + style.DEFAULT_SPACING) + alignment.add(self._picker_hbox) + self.set_content(alignment) + alignment.show() self._swatch_tray = Gtk.Table()