[pitivi: 3/4] Add Undo and Redo buttons to the toolbar. Fixes #588258.



commit 184009e81cc20f6d6b0d784723a34f3446277282
Author: Alessandro Decina <alessandro d gmail com>
Date:   Mon Jul 27 11:24:30 2009 +0200

    Add Undo and Redo buttons to the toolbar. Fixes #588258.

 pitivi/ui/mainwindow.py  |   10 ----------
 pitivi/ui/mainwindow.xml |    3 +++
 2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 3221555..7c121ba 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -830,11 +830,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
         undo_action = self.actiongroup.get_action("Undo")
         can_undo = bool(action_log.undo_stacks)
         undo_action.set_sensitive(can_undo)
-        if can_undo:
-            stack = action_log.undo_stacks[-1]
-            undo_action.props.label = _("Undo %s") % stack.action_group_name
-        else:
-            undo_action.props.label = _("Undo")
 
         dirty = action_log.dirty()
         save_action = self.actiongroup.get_action("SaveProject")
@@ -844,11 +839,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
         redo_action = self.actiongroup.get_action("Redo")
         can_redo = bool(action_log.redo_stacks)
         redo_action.set_sensitive(can_redo)
-        if can_redo:
-            stack = action_log.redo_stacks[-1]
-            redo_action.props.label = _("Redo %s") % stack.action_group_name
-        else:
-            redo_action.props.label = _("Redo")
 
 ## PiTiVi current project callbacks
 
diff --git a/pitivi/ui/mainwindow.xml b/pitivi/ui/mainwindow.xml
index bbd47bf..c820c25 100644
--- a/pitivi/ui/mainwindow.xml
+++ b/pitivi/ui/mainwindow.xml
@@ -51,6 +51,9 @@
     <toolitem action="OpenProject" />
     <toolitem action="SaveProject" />
     <separator />
+    <toolitem action="Undo" />
+    <toolitem action="Redo" />
+    <separator />
     <placeholder name="SourceList" />
     <separator />
     <toolitem action="RenderProject" />



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