[pitivi] Remove superseeded getHeightOfVideo



commit 4cb55ad9fe110073b0ba063c5d7a4f05128e22ab
Author: Paul Lange <palango gmx de>
Date:   Thu May 17 21:49:58 2012 -0500

    Remove superseeded getHeightOfVideo

 pitivi/timeline/timeline.py |   10 ----------
 pitivi/timeline/track.py    |    2 +-
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 277d8cf..3fe817c 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -572,16 +572,6 @@ class TimelineControls(gtk.VBox, Loggable):
             y += LAYER_SPACING
         return 0
 
-    # maybe do a list with values
-    def getHeightOfVideo(self):
-        y = 0
-        for child in self.get_children():
-            if isinstance(child, VideoLayerControl):
-                y += child.getHeight()
-                y += LAYER_SPACING
-
-        return y
-
     def getHeightOfTrack(self, track_type):
         map = {ges.TRACK_TYPE_AUDIO: AudioLayerControl,
                ges.TRACK_TYPE_VIDEO: VideoLayerControl}
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index a5afe32..dec723a 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -591,7 +591,7 @@ class TrackObject(View, goocanvas.Group, Zoomable, Loggable):
         #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.getHeightOfVideo()
+            y -= self.app.gui.timeline_ui._controls.getHeightOfTrack(ges.TRACK_TYPE_VIDEO)
 
         # Setting new position
         self.set_simple_transform(x, y, 1, 0)



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