[Sugar-devel] [PATCH] String format fix for "View Source" activity title

Simon Schampijer simon at schampijer.de
Wed Dec 14 21:21:24 EST 2011


On 14/12/11 19:53, Manuel Quiñones wrote:
> Fixes bug #3272 .
>
> Signed-off-by: Manuel Quiñones<manuq at laptop.org>
> ---
>   src/jarabe/view/viewsource.py |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py
> index 4ec47eb..1285e69 100644
> --- a/src/jarabe/view/viewsource.py
> +++ b/src/jarabe/view/viewsource.py
> @@ -397,7 +397,7 @@ class Toolbar(gtk.Toolbar):
>               sugar_button.show()
>               self._add_separator()
>
> -        self.activity_title_text = _('View source: %r') % title
> +        self.activity_title_text = _('View source: %s') % title
>           self.sugar_toolkit_title_text = _('View source: %r') % 'Sugar Toolkit'
>           self.label = gtk.Label()
>           self.label.set_markup('<b>%s</b>' % self.activity_title_text)

Thanks for the patch Manuel, it looks good. Ack'ed by me.

Regards,
    Simon





More information about the Sugar-devel mailing list