[pitivi/ges] timeline: Misc cleanup



commit 1fdba66c03bf089d55b385716ec1fdcd26921824
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Wed May 16 21:57:25 2012 -0400

    timeline: Misc cleanup

 pitivi/timeline/timeline.py |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index fa99918..ba089c5 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -596,8 +596,6 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         self._project = None
         self._projectmanager = None
 
-        #Ids of the tracks notify::duration signals
-        self._tcks_sig_ids = {}
         #Ids of the layer-added and layer-removed signals
         self._layer_sig_ids = []
 
@@ -1260,14 +1258,10 @@ class Timeline(gtk.Table, Loggable, Zoomable):
 
     def delTimeline(self):
         # Disconnect signal
-        for track, sigid in self._tcks_sig_ids.iteritems():
-            track.disconnect(sigid)
-
         for sigid in self._layer_sig_ids:
             self._timeline.disconnect(sigid)
 
         # clear dictionaries
-        self._tcks_sig_ids = {}
         self._layer_sig_ids = []
 
         #Remove references to the ges timeline
@@ -1284,7 +1278,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
 
     def updateVScrollAdjustments(self):
         """
-        Recalculate the vertical scrollbar depending on the timeline duration.
+        Recalculate the vertical scrollbar depending on the number of layer in
+        the timeline.
         """
         layers = self._timeline.get_layers()
         num_layers = len(layers)



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