[libgnomekbd/rendering-cleanup] Remove erroneous GDK_DRAWABLE use
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd/rendering-cleanup] Remove erroneous GDK_DRAWABLE use
- Date: Thu, 2 Dec 2010 16:12:15 +0000 (UTC)
commit 03144706c93127f1e9f394622465639de5899ddf
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 2 11:11:27 2010 -0500
Remove erroneous GDK_DRAWABLE use
libgnomekbd/gkbd-keyboard-drawing.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 14cd15a..e2e57b6 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1305,7 +1305,7 @@ create_cairo (GkbdKeyboardDrawing * drawing)
if (drawing == NULL || drawing->surface == NULL)
return FALSE;
drawing->renderContext->cr =
- gdk_cairo_create (GDK_DRAWABLE (drawing->surface));
+ cairo_create (drawing->surface);
state = gtk_widget_get_state (GTK_WIDGET (drawing));
drawing->renderContext->dark_color =
@@ -2384,7 +2384,7 @@ gkbd_keyboard_drawing_draw_page (GtkPrintOperation * operation,
gdouble dpi_y = gtk_print_context_get_dpi_y (context);
gchar *header;
- gtk_print_operation_set_unit (operation, GTK_PIXELS);
+ gtk_print_operation_set_unit (operation, GTK_UNIT_PIXEL);
header = g_strdup_printf
(_("Keyboard layout \"%s\"\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]