[libgnomekbd] Use cairo_create() for surfaces, not gdk_cairo_create()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Use cairo_create() for surfaces, not gdk_cairo_create()
- Date: Fri, 3 Dec 2010 10:08:59 +0000 (UTC)
commit f4f9d7045ff6faa3c4660fce986525377b269b75
Author: Benjamin Otte <otte redhat com>
Date: Fri Dec 3 01:14:27 2010 +0100
Use cairo_create() for surfaces, not gdk_cairo_create()
The previous code would crash.
libgnomekbd/gkbd-keyboard-drawing.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 9afa7fa..43e4fa2 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1304,8 +1304,7 @@ create_cairo (GkbdKeyboardDrawing * drawing)
GtkStateType state;
if (drawing == NULL || drawing->surface == NULL)
return FALSE;
- drawing->renderContext->cr =
- gdk_cairo_create (GDK_WINDOW (drawing->surface));
+ drawing->renderContext->cr = cairo_create (drawing->surface);
state = gtk_widget_get_state (GTK_WIDGET (drawing));
drawing->renderContext->dark_color =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]