From 1ed4eb8ad541cae3c3401c8f0f12c0716c7b895a Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 6 Sep 2012 08:38:19 +0200 Subject: [PATCH] Icon: Gdk.CairoContext does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Manuel QuiƱones --- 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 24c1610e..eca69012 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()