[pitivi] undo: Enable undo/redo in devel
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] undo: Enable undo/redo in devel
- Date: Wed, 6 Jan 2016 23:09:23 +0000 (UTC)
commit c17fd0f095dc1e8d8b8ff6e6934a26e8d4dc502a
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Jan 6 23:55:29 2016 +0100
undo: Enable undo/redo in devel
Required to be able to test the fixes which seem to be many.
Differential Revision: https://phabricator.freedesktop.org/D631
pitivi/application.py | 4 ++--
pitivi/mainwindow.py | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 59a1786..458a0ea 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -29,7 +29,7 @@ from gi.repository import Gio
from gi.repository import Gtk
from gi.repository import Gst
-from pitivi.configure import VERSION, RELEASES_URL
+from pitivi.configure import VERSION, RELEASES_URL, in_devel
from pitivi.dialogs.startupwizard import StartUpWizard
from pitivi.effects import EffectsManager
from pitivi.mainwindow import PitiviMainWindow
@@ -358,7 +358,7 @@ class Pitivi(Gtk.Application, Loggable):
def _syncDoUndo(self, action_log):
can_undo = bool(action_log.undo_stacks)
# TODO: Remove this once we revisit undo/redo T3360
- can_undo = False
+ can_undo = in_devel()
self.undo_action.set_enabled(can_undo)
can_redo = bool(action_log.redo_stacks)
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 5db1837..e26a8b3 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -447,9 +447,10 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
self.render_button.connect("clicked", self._renderCb)
# TODO: Add these back once we revisit undo/redo T3360
- # self._headerbar.pack_start(undo_button)
- # self._headerbar.pack_start(redo_button)
- # self._headerbar.pack_start(separator)
+ if in_devel():
+ self._headerbar.pack_start(undo_button)
+ self._headerbar.pack_start(redo_button)
+ self._headerbar.pack_start(separator)
self._headerbar.pack_start(self.save_button)
self._headerbar.pack_start(self.render_button)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]