[Sugar-devel] [PATCH] replace Keep and Stop accelerators
Sayamindu Dasgupta
sayamindu at gmail.com
Thu Aug 13 13:26:47 EDT 2009
Committed.
Thanks,
Sayamindu
On Wed, Aug 12, 2009 at 4:49 AM, Martin Dengler<martin at martindengler.com> wrote:
> This commit replaces the Keep and Stop accelerators from the
> Terminal's activity toolbar, since the default accelerators are quite
> heavily used keyboard shortcuts: Ctrl-s and Ctrl-q. These old
> defaults are replaced with shift-ed equivalents: Ctrl-Shift-s and
> Ctrl-Shift-q. This is consistent with how Terminal has modified
> versions of commonly-used Sugar shortcuts like Ctrl-Shift-c (copy) and
> Ctrl-Shift-v (paste).
> ---
> terminal.py | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/terminal.py b/terminal.py
> index 913652f..0c9b554 100644
> --- a/terminal.py
> +++ b/terminal.py
> @@ -106,6 +106,9 @@ class TerminalActivity(sugar.activity.activity.Activity):
> activity_toolbar = toolbox.get_activity_toolbar()
> activity_toolbar.share.props.visible = False
> activity_toolbar.keep.props.visible = False
> + activity_toolbar.keep.props.accelerator = '<Ctrl><Shift>S'
> +
> + activity_toolbar.stop.props.accelerator = '<Ctrl><Shift>Q'
>
> fullscreenbtn = sugar.graphics.toolbutton.ToolButton('view-fullscreen')
> fullscreenbtn.set_tooltip(_("Fullscreen"))
> --
> 1.6.0.6
>
>
--
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
More information about the Sugar-devel
mailing list