[PATCH 2/2] Tweak spacing in the accordion a little bit.

Chris Lumens clumens at redhat.com
Tue Jun 25 15:34:56 UTC 2013


Only setting a bottom margin on a MountpointSelector means they group a little
better with the DATA/SYSTEM heading they fall under.
---
 pyanaconda/ui/gui/spokes/lib/accordion.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py
index f6f26b3..3531e89 100644
--- a/pyanaconda/ui/gui/spokes/lib/accordion.py
+++ b/pyanaconda/ui/gui/spokes/lib/accordion.py
@@ -153,12 +153,12 @@ class Page(Gtk.Box):
         Gtk.Box.__init__(self, orientation=Gtk.Orientation.VERTICAL, spacing=6)
 
         # Create the Data label and a box to store all its members in.
-        self._dataBox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
+        self._dataBox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
         self._dataBox.add(self._make_category_label(_("DATA")))
         self.add(self._dataBox)
 
         # Create the System label and a box to store all its members in.
-        self._systemBox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
+        self._systemBox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
         self._systemBox.add(self._make_category_label(_("SYSTEM")))
         self.add(self._systemBox)
 
@@ -176,6 +176,7 @@ class Page(Gtk.Box):
         selector = selectorFromDevice(device, mountpoint=mountpoint)
         selector.connect("button-press-event", self._onSelectorClicked, cb)
         selector.connect("key-release-event", self._onSelectorClicked, cb)
+        selector.set_margin_bottom(6)
         self.members.append(selector)
 
         if self._mountpointType(selector.props.mountpoint) == DATA_DEVICE:
-- 
1.8.1.2



More information about the anaconda-patches mailing list