[pitivi] Make moving a clip in the timeline undoable.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Make moving a clip in the timeline undoable.
- Date: Thu, 11 Jun 2009 12:39:28 -0400 (EDT)
commit 8a23c5f4de083dc08bda293f854fce6926db6fe6
Author: Alessandro Decina <alessandro d gmail com>
Date: Wed Jun 10 13:40:27 2009 +0200
Make moving a clip in the timeline undoable.
pitivi/ui/trackobject.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/trackobject.py b/pitivi/ui/trackobject.py
index 5600ee8..95ccfd3 100644
--- a/pitivi/ui/trackobject.py
+++ b/pitivi/ui/trackobject.py
@@ -160,6 +160,7 @@ class TrackObject(View, goocanvas.Group, Zoomable):
def drag_start(self):
TimelineController.drag_start(self)
+ self._view.app.action_log.begin("move clip")
self._view.timeline.disableUpdates()
self._view.raise_(None)
tx = self._view.props.parent.get_transform()
@@ -185,6 +186,7 @@ class TrackObject(View, goocanvas.Group, Zoomable):
def drag_end(self):
TimelineController.drag_end(self)
self._view.timeline.enableUpdates()
+ self._view.app.action_log.commit()
def click(self, pos):
mode = SELECT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]