[pitivi] undo: No need for class attribute actions.
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] undo: No need for class attribute actions.
- Date: Sat, 15 Nov 2014 10:31:42 +0000 (UTC)
commit 4de252f79fe545a5ecf38dcf21d59354b00c3e4b
Author: Mathieu Duponchelle <mathieu duponchelle opencreed com>
Date: Fri May 2 12:48:36 2014 +0200
undo: No need for class attribute actions.
https://bugzilla.gnome.org/show_bug.cgi?id=739251
pitivi/undo/timeline.py | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/undo/timeline.py b/pitivi/undo/timeline.py
index 086b833..ad85ed0 100644
--- a/pitivi/undo/timeline.py
+++ b/pitivi/undo/timeline.py
@@ -224,10 +224,6 @@ class ActivePropertyChanged(UndoableAction):
class TimelineLogObserver(object):
timelinePropertyChangedAction = ClipPropertyChanged
- ClipAddedAction = ClipAdded
- ClipRemovedAction = ClipRemoved
- effectAddAction = EffectAdded
- effectRemovedAction = EffectRemoved
interpolatorKeyframeAddedAction = InterpolatorKeyframeAdded
interpolatorKeyframeRemovedAction = InterpolatorKeyframeRemoved
interpolatorKeyframeChangedAction = InterpolatorKeyframeChanged
@@ -326,12 +322,12 @@ class TimelineLogObserver(object):
def _clipAddedCb(self, layer, clip):
self._connectToClip(clip)
- action = self.ClipAddedAction(layer, clip)
+ action = ClipAdded(layer, clip)
self.log.push(action)
def _clipRemovedCb(self, layer, clip):
self._disconnectFromClip(clip)
- action = self.ClipRemovedAction(layer, clip)
+ action = ClipRemoved(layer, clip)
self.log.push(action)
def _clipPropertyChangedCb(self, tracker, clip,
@@ -347,16 +343,16 @@ class TimelineLogObserver(object):
def _clipTrackElementAddedCb(self, clip, track_element):
self._connectToTrackElement(track_element)
if isinstance(track_element, GES.BaseEffect):
- action = self.effectAddAction(clip, track_element,
- self.effect_properties_tracker)
+ action = EffectAdded(clip, track_element,
+ self.effect_properties_tracker)
self.log.push(action)
def _clipTrackElementRemovedCb(self, clip, track_element):
self._disconnectFromTrackElement(track_element)
if isinstance(track_element, GES.BaseEffect):
- action = self.effectRemovedAction(clip,
- track_element,
- self.effect_properties_tracker)
+ action = EffectRemoved(clip,
+ track_element,
+ self.effect_properties_tracker)
self.log.push(action)
def _interpolatorKeyframeAddedCb(self, track_element, keyframe):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]