[pitivi] ui.sourcelist. Implement do/undo for the InsertEnd action



commit ae8e8a6def084630bee31605321cafacb6b07c0f
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Jun 11 16:46:25 2009 +0200

    ui.sourcelist. Implement do/undo for the InsertEnd action

 pitivi/ui/sourcelist.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 31b945b..40e3e78 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -316,6 +316,7 @@ class SourceList(gtk.VBox, Loggable):
         self._removeSources()
 
     def _insertEndCb(self, unused_action):
+        self.app.action_log.begin("add clip")
         timeline = self.app.current.timeline
         sources = self.app.current.sources
         start = timeline.duration
@@ -324,6 +325,7 @@ class SourceList(gtk.VBox, Loggable):
             source = timeline.addSourceFactory(factory)
             source.setStart(start)
             start += source.duration
+        self.app.action_log.commit()
 
     def _getIcon(self, iconname, alternate):
         icontheme = gtk.icon_theme_get_default()



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