[pitivi: 18/41] Standardize spacing



commit 0a7d3e5f49075656f4720e21bf7a97e66a1a0702
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sun Jul 24 23:05:04 2011 -0400

    Standardize spacing

 pitivi/ui/dynamic.py   |    4 ++--
 pitivi/ui/gstwidget.py |    7 ++++---
 pitivi/ui/prefs.py     |    8 ++++----
 3 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/ui/dynamic.py b/pitivi/ui/dynamic.py
index 78cc479..eefa2cd 100644
--- a/pitivi/ui/dynamic.py
+++ b/pitivi/ui/dynamic.py
@@ -32,7 +32,7 @@ from gettext import gettext as _
 from pitivi.utils import time_to_string
 from pitivi.ui.common import unpack_color, pack_color_32, pack_color_64
 import pango
-from pitivi.ui.common import PADDING, SPACING
+from pitivi.ui.common import SPACING
 
 
 class DynamicWidget(object):
@@ -648,7 +648,7 @@ class ResolutionWidget(gtk.HBox, DynamicWidget):
     def __init__(self, default=None):
         gtk.HBox.__init__(self)
         DynamicWidget.__init__(self, default)
-        self.props.spacing = 6
+        self.props.spacing = SPACING
 
         self.dwidth = 0
         self.dheight = 0
diff --git a/pitivi/ui/gstwidget.py b/pitivi/ui/gstwidget.py
index 87eb7db..cbfaa16 100644
--- a/pitivi/ui/gstwidget.py
+++ b/pitivi/ui/gstwidget.py
@@ -32,6 +32,7 @@ from gettext import gettext as _
 from pitivi.log.loggable import Loggable
 from pitivi.configure import get_ui_dir
 import pitivi.ui.dynamic as dynamic
+from pitivi.ui.common import SPACING
 
 
 def make_property_widget(unused_element, prop, value=None):
@@ -109,9 +110,9 @@ class GstElementSettingsWidget(gtk.VBox, Loggable):
         else:
             table = gtk.Table(rows=len(props), columns=2)
 
-        table.set_row_spacings(5)
-        table.set_col_spacings(5)
-        table.set_border_width(5)
+        table.set_row_spacings(SPACING)
+        table.set_col_spacings(SPACING)
+        table.set_border_width(SPACING)
         y = 0
         for prop in props:
             if not prop.flags & gobject.PARAM_WRITABLE\
diff --git a/pitivi/ui/prefs.py b/pitivi/ui/prefs.py
index 7278695..cec6285 100644
--- a/pitivi/ui/prefs.py
+++ b/pitivi/ui/prefs.py
@@ -86,7 +86,7 @@ class PreferencesDialog():
         """
         Add a user preference. The preferences dialog will try
         to guess the appropriate widget to use based on the type of the
-        option, but you can override this by specifying a ustom class.
+        option, but you can override this by specifying a custom class.
 
         @param label: user-visible name for this option
         @type label: C{str}
@@ -253,9 +253,9 @@ class PreferencesDialog():
             options = self.prefs[section]
             self.model.append((_(section), section))
             widgets = gtk.Table()
-            widgets.set_border_width(6)
-            widgets.props.column_spacing = 6
-            widgets.props.row_spacing = 3
+            widgets.set_border_width(SPACING)
+            widgets.props.column_spacing = SPACING
+            widgets.props.row_spacing = SPACING / 2
             self.sections[section] = widgets
 
             prefs = {}



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