[pitivi] Add undo/redo support for trimming objects at end.



commit bcce4a88a33ddccc0aa76d790f587985e2efbd64
Author: Alessandro Decina <alessandro d gmail com>
Date:   Wed Jun 10 17:13:58 2009 +0200

    Add undo/redo support for trimming objects at end.

 pitivi/ui/trackobject.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/trackobject.py b/pitivi/ui/trackobject.py
index c86d613..774f8dd 100644
--- a/pitivi/ui/trackobject.py
+++ b/pitivi/ui/trackobject.py
@@ -156,6 +156,14 @@ class EndHandle(TrimHandle):
 
         _cursor = RIGHT_SIDE
 
+        def drag_start(self):
+            TimelineController.drag_start(self)
+            self._view.app.action_log.begin("trim object")
+
+        def drag_end(self):
+            TimelineController.drag_end(self)
+            self._view.app.action_log.commit()
+
         def set_pos(self, obj, pos):
             start = self._view.element.start
             abs_pos = self._view.pixelToNs(pos[0])



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