[pitivi] undo: Reenable undo/redo
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] undo: Reenable undo/redo
- Date: Fri, 17 Jun 2016 15:44:51 +0000 (UTC)
commit 8df91b21d57a3e427e8d721dd545ceff52ff24d1
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Jun 17 17:40:34 2016 +0200
undo: Reenable undo/redo
It's starting to be useful.
pitivi/application.py | 5 +----
pitivi/mainwindow.py | 8 +++-----
2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 1a33f58..c887f82 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -27,7 +27,6 @@ from gi.repository import GObject
from gi.repository import Gst
from gi.repository import Gtk
-from pitivi.configure import in_devel
from pitivi.configure import RELEASES_URL
from pitivi.configure import VERSION
from pitivi.dialogs.startupwizard import StartUpWizard
@@ -52,7 +51,7 @@ from pitivi.utils.timeline import Zoomable
class Pitivi(Gtk.Application, Loggable):
- """Pitivi's application.
+ """Hello world.
Attributes:
action_log (UndoableActionLog): The undo/redo log for the current project.
@@ -375,8 +374,6 @@ class Pitivi(Gtk.Application, Loggable):
def _syncDoUndo(self):
can_undo = self.action_log and bool(self.action_log.undo_stacks)
- # TODO: Remove this once we revisit undo/redo T3360
- can_undo = can_undo and in_devel()
self.undo_action.set_enabled(bool(can_undo))
can_redo = self.action_log and bool(self.action_log.redo_stacks)
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index ac9e2eb..c1bf51b 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -437,11 +437,9 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
self.render_button.set_sensitive(False) # The only one we have to set.
self.render_button.connect("clicked", self._renderCb)
- # TODO: Add these back once we revisit undo/redo T3360
- if in_devel():
- self._headerbar.pack_start(undo_button)
- self._headerbar.pack_start(redo_button)
- self._headerbar.pack_start(separator)
+ 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]