[Sugar-devel] [PATCH sugar-toolkit-gtk3] Icon: Gdk.CairoContext does not exist

Simon Schampijer simon at schampijer.de
Thu Sep 6 12:18:53 EDT 2012


Thanks, pushed.

On 09/06/2012 02:35 PM, Manuel Quiñones wrote:
> Good catch, we were not receiving errors in the logs for that.  Acked.
>
> 2012/9/6 Simon Schampijer <simon at schampijer.de>:
>> From: Simon Schampijer <simon at laptop.org>
>>
>> First of all 'Gdk.CairoContext' does not exist, this has been
>> made up by the conversion script in 820efa56b9876bb418bc51d30de959775930e35c
>>
>> We do not need the previous gtk.gdk.CairoContext here anymore, we
>> do only want to set the background of the context here. See the
>> toolkit-gtk2 commit where this has been simplified [1].
>>
>> [1] http://git.sugarlabs.org/sugar-toolkit/mainline/commit/6ce463585c3f3a639392e51cb26d789c2fde6516
>>
>> Signed-off-by: Simon Schampijer <simon at laptop.org>
>> ---
>>   src/sugar3/graphics/icon.py | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
>> index 24c1610..eca6901 100644
>> --- a/src/sugar3/graphics/icon.py
>> +++ b/src/sugar3/graphics/icon.py
>> @@ -278,7 +278,6 @@ class _IconBuffer(object):
>>               surface = cairo.ImageSurface(cairo.FORMAT_RGB24, int(width),
>>                                            int(height))
>>               context = cairo.Context(surface)
>> -            context = Gdk.CairoContext(context)
>>               context.set_source_color(self.background_color)
>>               context.paint()
>>
>> --
>> 1.7.11.4
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>



More information about the Sugar-devel mailing list