[pitivi] timeline: Get rid of method used in a single place



commit 7915c3982955c2b3301d7bf5261209270bbf06d9
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sat Jan 25 21:52:58 2014 +0100

    timeline: Get rid of method used in a single place

 pitivi/timeline/timeline.py |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 3886924..f618daa 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -482,10 +482,6 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
         self._redraw()
         self._container.controls.addLayerControl(layer)
 
-    def _addTrackElement(self, track, bElement):
-        self._updateSize()
-        self._addTimelineElement(track, bElement)
-
     # Interface overrides
 
     # Zoomable Override
@@ -592,7 +588,8 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
             self._removeTimelineElement(track, element)
 
     def _trackElementAddedCb(self, track, bElement):
-        self._addTrackElement(track, bElement)
+        self._updateSize()
+        self._addTimelineElement(track, bElement)
 
     def _trackElementRemovedCb(self, track, bElement):
         self._removeTimelineElement(track, bElement)


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