[pitivi: 35/36] ui: Use the SPACING variable around all the project
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 35/36] ui: Use the SPACING variable around all the project
- Date: Sun, 22 May 2011 20:34:25 +0000 (UTC)
commit fab5d0a10afacf3a758ab6dbcb626e21e905fa3e
Author: Thibault Saunier <thibault saunier collabora co uk>
Date: Fri May 20 17:42:08 2011 -0400
ui: Use the SPACING variable around all the project
pitivi/ui/filechooserpreview.py | 2 +-
pitivi/ui/prefs.py | 5 +++--
pitivi/ui/timeline.py | 3 ++-
pitivi/ui/viewer.py | 2 +-
4 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/ui/filechooserpreview.py b/pitivi/ui/filechooserpreview.py
index 8ae1dfa..8ddaf61 100644
--- a/pitivi/ui/filechooserpreview.py
+++ b/pitivi/ui/filechooserpreview.py
@@ -15,7 +15,7 @@ from pitivi.configure import get_pixmap_dir
from pitivi.factories.file import PictureFileSourceFactory
from pitivi.settings import GlobalSettings
from gettext import gettext as _
-
+from pitivi.ui.common import SPACING
DEFAULT_AUDIO_IMAGE = os.path.join(get_pixmap_dir(), "pitivi-sound.png")
diff --git a/pitivi/ui/prefs.py b/pitivi/ui/prefs.py
index f2e9a2c..ea1a454 100644
--- a/pitivi/ui/prefs.py
+++ b/pitivi/ui/prefs.py
@@ -27,6 +27,7 @@ import gtk
from gettext import gettext as _
import pitivi.ui.dynamic as dynamic
from pitivi.settings import GlobalSettings
+from pitivi.ui.common import SPACING
GlobalSettings.addConfigOption('prefsDialogWidth',
section = "user-interface",
@@ -65,9 +66,9 @@ class PreferencesDialog(gtk.Window):
# basic layout
vbox = gtk.VBox()
- vbox.set_spacing(6)
+ vbox.set_spacing(SPACING)
button_box = gtk.HBox()
- button_box.set_spacing(5)
+ button_box.set_spacing(SPACING)
button_box.set_homogeneous(False)
pane = gtk.HPaned()
vbox.pack_start(pane, True, True)
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 4f0e214..fca43a8 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -42,6 +42,7 @@ from pitivi.timeline.timeline import MoveContext, SELECT
from pitivi.utils import Seeker
from pitivi.ui.filelisterrordialog import FileListErrorDialog
from pitivi.ui.curve import Curve
+from pitivi.ui.common import SPACING
from pitivi.factories.operation import EffectFactory
@@ -146,7 +147,7 @@ class InfoStub(gtk.HBox, Loggable):
self._makeUI()
def _makeUI(self):
- self.set_spacing(6)
+ self.set_spacing(SPACING)
self.erroricon = gtk.image_new_from_stock(gtk.STOCK_DIALOG_WARNING,
gtk.ICON_SIZE_SMALL_TOOLBAR)
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index fe46e0c..91789e8 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -270,7 +270,7 @@ class PitiviViewer(gtk.VBox, Loggable):
self.external_window = gtk.Window()
vbox = gtk.VBox()
- vbox.set_spacing(6)
+ vbox.set_spacing(SPACING)
self.external_window.add(vbox)
self.external = ViewerWidget(self.action)
vbox.pack_start(self.external)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]