diff options
author | Martin Dengler <martin@martindengler.com> | 2008-10-03 19:44:35 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2008-10-03 19:46:03 (GMT) |
commit | ce4f26bc31dbd0210f2284d33dc5338338f8d0c4 (patch) | |
tree | 71d0f4b69ede1aa57787dfd67ab4ba4f441f9383 | |
parent | 4a8f988ab243c64ace50618f0e67699521d0fa92 (diff) |
#4646: Fix systemwide shortcut breakage
-rw-r--r-- | terminal.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/terminal.py b/terminal.py index 2977a83..af771c1 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') |