[pitivi/ges: 26/287] Modifies undo.py to prevent it from bugging us
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 26/287] Modifies undo.py to prevent it from bugging us
- Date: Thu, 15 Mar 2012 16:28:01 +0000 (UTC)
commit 50f51dfe5d967e012bbf59d97d0ae03028313974
Author: Mathieu Duponchelle <seeed laposte net>
Date: Sun Aug 28 21:34:06 2011 +0200
Modifies undo.py to prevent it from bugging us
pitivi/timeline/timeline_undo.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/timeline/timeline_undo.py b/pitivi/timeline/timeline_undo.py
index e2020c4..03dd3a7 100644
--- a/pitivi/timeline/timeline_undo.py
+++ b/pitivi/timeline/timeline_undo.py
@@ -43,6 +43,7 @@ class TimelineObjectPropertyChangeTracker(PropertyChangeTracker):
self.timeline.connect("disable-updates", self._timelineDisableUpdatesCb)
def disconnectFromObject(self, obj):
+ return
self.timeline.disconnect_by_func(self._timelineDisableUpdatesCb)
PropertyChangeTracker.disconnectFromObject(self, obj)
@@ -130,7 +131,7 @@ class TimelineObjectAdded(UndoableAction):
def __init__(self, timeline, timeline_object):
self.timeline = timeline
self.timeline_object = timeline_object
- self.tracks = dict((track_object, track_object.track)
+ self.tracks = dict((track_object, track_object.get_track())
for track_object in timeline_object.get_track_objects())
def do(self):
@@ -149,8 +150,8 @@ class TimelineObjectRemoved(UndoableAction):
def __init__(self, timeline, timeline_object):
self.timeline = timeline
self.timeline_object = timeline_object
- self.tracks = dict((track_object, track_object.track)
- for track_object in timeline_object.track_objects)
+ self.tracks = dict((track_object, track_object.get_track())
+ for track_object in timeline_object.get_track_objects())
def do(self):
self.timeline.removeTimelineObject(self.timeline_object, deep=True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]