[Sugar-devel] [PATCH sugar-toolkit-gtk3] Icon: Gdk.CairoContext does not exist
Simon Schampijer
simon at schampijer.de
Thu Sep 6 03:04:40 EDT 2012
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
More information about the Sugar-devel
mailing list