Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2008-10-03 19:44:35 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2008-10-03 19:44:35 (GMT)
commit658beb8dc57d2eb78c73577e0c90135fa751b1b1 (patch)
treec51595cea459bd9b0a6aad805fed0c6bc368ca51
parent6ebadc449c20b044f60b8c60c8170f8befe47e2d (diff)
#4646: Fix systemwide shortcut breakage
-rw-r--r--terminal.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/terminal.py b/terminal.py
index e3e681d..6c88a9d 100644
--- a/terminal.py
+++ b/terminal.py
@@ -55,8 +55,14 @@ class TerminalActivity(activity.Activity):
self._edit_toolbar.paste.connect('clicked', self._paste_cb)
activity_toolbar = toolbox.get_activity_toolbar()
- activity_toolbar.share.props.visible = False
- activity_toolbar.keep.props.visible = False
+ # free up keyboard accelerators per #4646
+ activity_toolbar.stop.props.accelerator = None
+
+ # unneeded buttons (also frees up keyboard accelerators per #4646)
+ activity_toolbar.remove(activity_toolbar.share)
+ activity_toolbar.share = None
+ activity_toolbar.remove(activity_toolbar.keep)
+ activity_toolbar.keep = None
# Add a button that will be used to become root easily.
activity_toolbar.become_root = ToolButton('activity-become-root')