[Sugar-devel] [PATCH sugar] Display title in palette of shared activity OLPC #10676

Gonzalo Odiard gonzalo at laptop.org
Thu May 26 08:24:02 EDT 2011


Nice!
Now, if you can fix the position of the shared activity, to put it  near the
kid icon.....

Gonzalo


On Wed, May 25, 2011 at 10:57 AM, Simon Schampijer <simon at schampijer.de>wrote:

> The patch does display the activity name as primary text
> and the session title as secondary text. This is coherent
> with the palette of an activity in the frame.
>
> Signed-off-by: Simon Schampijer <simon at laptop.org>
> ---
>  src/jarabe/desktop/meshbox.py |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
> index 3d1e52a..83740d0 100644
> --- a/src/jarabe/desktop/meshbox.py
> +++ b/src/jarabe/desktop/meshbox.py
> @@ -94,12 +94,14 @@ class ActivityView(hippo.CanvasBox):
>         return icon
>
>     def _create_palette(self):
> -        p_text = glib.markup_escape_text(self._model.bundle.get_name())
> +        primary_text =
> glib.markup_escape_text(self._model.bundle.get_name())
> +        secondary_text = glib.markup_escape_text(self._model.get_name())
>         p_icon = Icon(file=self._model.bundle.get_icon(),
>                       xo_color=self._model.get_color())
>         p_icon.props.icon_size = gtk.ICON_SIZE_LARGE_TOOLBAR
>         p = palette.Palette(None,
> -                            primary_text=p_text,
> +                            primary_text=primary_text,
> +                            secondary_text=secondary_text,
>                             icon=p_icon)
>
>         private = self._model.props.private
> --
> 1.7.4
>
> _______________________________________________
> 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/20110526/ccf52ca5/attachment.html>


More information about the Sugar-devel mailing list