[Pkg-sugar-commit] [sugar-terminal-activity] 03/04: #4646: Fix systemwide shortcut breakage
Jonas Smedegaard
dr at jones.dk
Fri Jun 19 02:57:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v19
in repository sugar-terminal-activity.
commit ce4f26bc31dbd0210f2284d33dc5338338f8d0c4
Author: Martin Dengler <martin at martindengler.com>
Date: Sat Oct 4 01:14:35 2008 +0530
#4646: Fix systemwide shortcut breakage
---
terminal.py | 10 ++++++++--
1 file 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')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-terminal-activity.git
More information about the pkg-sugar-commit
mailing list