[pitivi/ges: 209/287] undo: Make UndoableActionLog loggable
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 209/287] undo: Make UndoableActionLog loggable
- Date: Thu, 15 Mar 2012 16:43:25 +0000 (UTC)
commit 903aacdde6366a9750e6fccfe3fe301ae8333c41
Author: Thibault Saunier <thibault saunier collabora com>
Date: Thu Jan 12 13:38:44 2012 -0300
undo: Make UndoableActionLog loggable
pitivi/undo/undo.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/undo/undo.py b/pitivi/undo/undo.py
index 7cac947..38c77b2 100644
--- a/pitivi/undo/undo.py
+++ b/pitivi/undo/undo.py
@@ -97,7 +97,7 @@ class UndoableActionStack(UndoableAction):
self.emit("cleaned")
-class UndoableActionLog(Signallable):
+class UndoableActionLog(Signallable, Loggable):
__signals__ = {
"begin": ["stack", "nested"],
"push": ["stack", "action"],
@@ -109,6 +109,8 @@ class UndoableActionLog(Signallable):
}
def __init__(self):
+ Loggable.__init__(self)
+
self.undo_stacks = []
self.redo_stacks = []
self.stacks = []
@@ -116,6 +118,7 @@ class UndoableActionLog(Signallable):
self._checkpoint = self._takeSnapshot()
def begin(self, action_group_name):
+ self.debug("Begining %s", action_group_name)
if self.running:
return
@@ -125,6 +128,7 @@ class UndoableActionLog(Signallable):
self.emit("begin", stack, nested)
def push(self, action):
+ self.debug("Pushing %s", action)
if self.running:
return
@@ -163,6 +167,8 @@ class UndoableActionLog(Signallable):
if self.redo_stacks:
self.redo_stacks = []
+ self.debug("%s pushed", stack)
+
self.emit("commit", stack, nested)
def undo(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]