Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbar.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-03-20 23:18:17 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-03-20 23:18:17 (GMT)
commit54ac2f4bdc357b912104baa1eed385799e59757d (patch)
treec89e7303b7b62cb18b3a540b21f61f9087a185ae /toolbar.py
parent5ed3a0cea7ffe0ce46891d0220f89b95267be632 (diff)
Make undo/redo context aware
Diffstat (limited to 'toolbar.py')
-rw-r--r--toolbar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolbar.py b/toolbar.py
index e9d8248..bffb8b9 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -114,12 +114,14 @@ class AbiToolbar(object):
def _canUndo_cb(self, abi, b):
print "canUndo",b
+ self._undo.props.active = b
def _redo_cb(self, button):
self._abiword_canvas.redo()
def _canRedo_cb(self, abi ,b):
print "canRedo",b
+ self._redo.props.active = b
def _underline_cb(self, button):
self._abiword_canvas.toggle_underline()