[Sugar-devel] [PATCH] Terminal: zoom shortcuts fix and set standard zoom step

Rafael Ortiz rafael at activitycentral.com
Fri Sep 2 11:39:16 EDT 2011


On Fri, Sep 2, 2011 at 6:38 AM, Manuel Quiñones <manuq at laptop.org> wrote:

> Thanks for Simon Schampijer for let me spot this issue.
>
> Signed-off-by: Manuel Quiñones <manuq at laptop.org>
> ---
>  terminal.py |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/terminal.py b/terminal.py
> index 9b2b68e..77001ea 100644
> --- a/terminal.py
> +++ b/terminal.py
> @@ -45,7 +45,7 @@ log = logging.getLogger('Terminal')
>  log.setLevel(logging.DEBUG)
>  logging.basicConfig()
>
> -ZOOM_STEP = 2000
> +ZOOM_STEP = 1024
>
>
>  class TerminalActivity(activity.Activity):
> @@ -166,14 +166,14 @@ class TerminalActivity(activity.Activity):
>
>         zoom_out_button = ToolButton('zoom-out')
>         zoom_out_button.set_tooltip(_('Zoom out'))
> -        zoom_out_button.props.accelerator = '<Ctrl>-'
> +        zoom_out_button.props.accelerator = '<Ctrl>minus'
>         zoom_out_button.connect('clicked', self.__zoom_out_cb)
>         view_toolbar.insert(zoom_out_button, -1)
>         zoom_out_button.show()
>
>         zoom_in_button = ToolButton('zoom-in')
>         zoom_in_button.set_tooltip(_('Zoom in'))
> -        zoom_in_button.props.accelerator = '<Ctrl>+'
> +        zoom_in_button.props.accelerator = '<Ctrl>plus'
>         zoom_in_button.connect('clicked', self.__zoom_in_cb)
>         view_toolbar.insert(zoom_in_button, -1)
>         zoom_in_button.show()
> --
> 1.7.4.4
>
> Thanks. Applied as

http://git.sugarlabs.org/terminal/mainline/commit/93efb15fe58d216e7c7b7011d4db701dcac94ffd




> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110902/161908e0/attachment.html>


More information about the Sugar-devel mailing list