[pitivi] ui/clipproperties.py: log the removing effects so you can undo/redo it



commit 03d486abb1888ba7c8ee60395030381b846a912b
Author: Thibault Saunier <tsaunier gnome org>
Date:   Sun Aug 8 18:55:09 2010 -0400

    ui/clipproperties.py: log the removing effects so you can undo/redo it

 pitivi/ui/clipproperties.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index 7a1ac87..c6aa4d9 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -236,9 +236,11 @@ class EffectProperties(gtk.Expander):
             self._removeEffect(effect)
 
     def _removeEffect(self, effect):
+        self.app.action_log.begin("add effect")
         track  = effect.track
         self.timeline_object.removeTrackObject(effect)
         track.removeTrackObject(effect)
+        self.app.action_log.commit()
 
     def _dragDataReceivedCb(self, unused_layout, context, x, y,
         selection, targetType, timestamp):



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