[pitivi: 16/28] track.py: update default sources whenever a track-object is added or removed, or when updates are re



commit 42eb5152993132951d58fa2479027208e3f8ee9a
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Thu Dec 3 19:44:32 2009 -0800

    track.py: update default sources whenever a track-object is added or removed, or when updates are re-enabled

 pitivi/timeline/track.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 59bb7ec..89d26ad 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -793,6 +793,7 @@ class Track(Signallable):
 
         self._updateMaxPriority()
         self._connectToTrackObject(track_object)
+        self.updateDefaultSources()
 
         self.emit('track-object-added', track_object)
 
@@ -814,6 +815,7 @@ class Track(Signallable):
         self._disconnectTrackObjectSignals(track_object)
 
         self._updateMaxPriority()
+        self.updateDefaultSources()
 
         self.emit('track-object-removed', track_object)
 
@@ -865,6 +867,7 @@ class Track(Signallable):
 
     def enableUpdates(self):
         self.composition.props.update = True
+        self.updateDefaultSources()
 
     def disableUpdates(self):
         self.composition.props.update = False



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