[pitivi] undo: Remove unuseful fields
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] undo: Remove unuseful fields
- Date: Mon, 23 May 2016 08:38:18 +0000 (UTC)
commit ae771fe3f598af894790a4280dfc650cfd47cc2c
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue May 3 01:58:58 2016 +0200
undo: Remove unuseful fields
Differential Revision: https://phabricator.freedesktop.org/D987
pitivi/undo/timeline.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/undo/timeline.py b/pitivi/undo/timeline.py
index c48a89e..571ffe6 100644
--- a/pitivi/undo/timeline.py
+++ b/pitivi/undo/timeline.py
@@ -543,9 +543,6 @@ class TimelineObserver(Loggable):
action_log (UndoableActionLog): The action log where to report actions.
"""
- timelinePropertyChangedAction = ClipPropertyChanged
- activePropertyChangedAction = ActivePropertyChanged
-
def __init__(self, action_log, app):
Loggable.__init__(self)
self.action_log = action_log
@@ -697,8 +694,8 @@ class TimelineObserver(Loggable):
attr_name = "last-%s" % property_name
new_value = clip.get_property(property_name)
old_value = getattr(tracker, attr_name)
- action = self.timelinePropertyChangedAction(clip, property_name,
- old_value, new_value)
+ action = ClipPropertyChanged(clip, property_name,
+ old_value, new_value)
setattr(tracker, attr_name, new_value)
self.action_log.push(action)
@@ -733,7 +730,7 @@ class TimelineObserver(Loggable):
"""
This happens when an effect is (de)activated on a clip in the timeline.
"""
- action = self.activePropertyChangedAction(add_effect_action, active)
+ action = ActivePropertyChanged(add_effect_action, active)
self.action_log.push(action)
def _controlSourceKeyFrameMovedCb(self, tracker, control_source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]