[pitivi] Remove LAYER_SPACING constant
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Remove LAYER_SPACING constant
- Date: Sat, 21 Jul 2012 20:01:08 +0000 (UTC)
commit 8c09b7fb8ec2c6e94ffa8e089e52eaec1ded1e8c
Author: Paul Lange <palango gmx de>
Date: Tue Jul 10 15:41:19 2012 +0200
Remove LAYER_SPACING constant
pitivi/timeline/layer.py | 3 +--
pitivi/timeline/timeline.py | 2 +-
pitivi/timeline/track.py | 5 +----
pitivi/utils/ui.py | 1 -
4 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index 1a33969..371bd0a 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -27,8 +27,7 @@ import gobject
from gettext import gettext as _
from pitivi.utils.loggable import Loggable
-from pitivi.utils.ui import LAYER_SPACING, LAYER_CONTROL_TUPLE, \
- TYPE_PITIVI_LAYER_CONTROL
+from pitivi.utils.ui import LAYER_CONTROL_TUPLE, TYPE_PITIVI_LAYER_CONTROL
# TODO add tooltips
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index be2c263..de02f1b 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -57,7 +57,7 @@ from pitivi.dialogs.prefs import PreferencesDialog
from pitivi.utils.receiver import receiver, handler
from pitivi.utils.loggable import Loggable
from pitivi.utils.ui import SPACING, CANVAS_SPACING, unpack_cairo_pattern, \
- LAYER_SPACING, TYPE_PITIVI_FILESOURCE, VIDEO_EFFECT_TUPLE, Point, \
+ TYPE_PITIVI_FILESOURCE, VIDEO_EFFECT_TUPLE, Point, \
AUDIO_EFFECT_TUPLE, EFFECT_TUPLE, FILESOURCE_TUPLE, TYPE_PITIVI_EFFECT, \
LAYER_CREATION_BLOCK_TIME, LAYER_CONTROL_TUPLE
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index d5d555e..c9f2034 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -40,8 +40,7 @@ from pitivi.settings import GlobalSettings
from pitivi.utils.signal import Signallable
from pitivi.utils.timeline import SELECT, SELECT_ADD, UNSELECT, \
SELECT_BETWEEN, EditingContext, Controller, View, Zoomable
-from pitivi.utils.ui import LAYER_SPACING, \
- unpack_cairo_pattern, unpack_cairo_gradient
+from pitivi.utils.ui import unpack_cairo_pattern, unpack_cairo_gradient
from thumbnailer import Preview
@@ -606,8 +605,6 @@ class TrackObject(View, goocanvas.Group, Zoomable, Loggable):
# get y position for layer
y = self.app.gui.timeline_ui.controls.getYOfLayer(track_type, layer)
- #priority = self.element.get_timeline_object().get_layer().get_priority()
- #y = (self.height + LAYER_SPACING) * priority
# get relative y for audio
if track_type == ges.TRACK_TYPE_AUDIO:
y -= self.app.gui.timeline_ui.controls.getHeightOfTrack(ges.TRACK_TYPE_VIDEO)
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 8bca7d7..837c456 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -45,7 +45,6 @@ from pitivi.utils.loggable import doLog, ERROR
##
LAYER_HEIGHT_EXPANDED = 50
LAYER_HEIGHT_COLLAPSED = 15
-LAYER_SPACING = 15
TRACK_SPACING = 8
SPACING = 6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]