From ce4f26bc31dbd0210f2284d33dc5338338f8d0c4 Mon Sep 17 00:00:00 2001 From: Martin Dengler Date: Fri, 03 Oct 2008 19:44:35 +0000 Subject: #4646: Fix systemwide shortcut breakage --- 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') -- cgit v0.9.1