[Sugar-devel] [PATCH] fix OLPC #10488 - Color chooser does not always work when giving color to selected text

Simon Schampijer simon at schampijer.de
Thu Dec 2 16:30:08 EST 2010


Thanks Gonzalo for looking at that one!

Benjamin, maybe you can have a look what you think about that one. The 
issue is described in http://dev.laptop.org/ticket/10488 (I think we had 
a similar ticket already at SL).

Regards,
    Simon


On 12/02/2010 03:27 PM, Gonzalo Odiard wrote:
> Emit signal at color change
> ---
>   src/sugar/graphics/colorbutton.py |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/sugar/graphics/colorbutton.py b/src/sugar/graphics/colorbutton.py
> index 1fed96d..c36320a 100644
> --- a/src/sugar/graphics/colorbutton.py
> +++ b/src/sugar/graphics/colorbutton.py
> @@ -125,7 +125,7 @@ class _ColorButton(gtk.Button):
>           self._preview.fill_color = get_svg_color_string(self._color)
>           if self._palette:
>               self._palette.props.color = self._color
> -        self.notify('color')
> +        self.emit('color-set')
>
>       def get_color(self):
>           return self._color
> @@ -379,7 +379,7 @@ class _ColorPalette(Palette):
>               self._scales[self._GREEN].set_value(self._color.green / 65535.0)
>               self._scales[self._BLUE].set_value(self._color.blue / 65535.0)
>
> -        self.notify('color')
> +        self.emit('color-set')
>
>       def get_color(self):
>           return self._color



More information about the Sugar-devel mailing list