Icon: Gdk.CairoContext does not exist
First of all 'Gdk.CairoContext' does not exist, this has been made up by the conversion script in820efa56b9We 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]6ce463585cSigned-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
parent
4cc6967c8d
commit
1ed4eb8ad5
@ -278,7 +278,6 @@ class _IconBuffer(object):
|
|||||||
surface = cairo.ImageSurface(cairo.FORMAT_RGB24, int(width),
|
surface = cairo.ImageSurface(cairo.FORMAT_RGB24, int(width),
|
||||||
int(height))
|
int(height))
|
||||||
context = cairo.Context(surface)
|
context = cairo.Context(surface)
|
||||||
context = Gdk.CairoContext(context)
|
|
||||||
context.set_source_color(self.background_color)
|
context.set_source_color(self.background_color)
|
||||||
context.paint()
|
context.paint()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user