summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-02 11:11:27 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-02 11:11:27 -0500
commit03144706c93127f1e9f394622465639de5899ddf (patch)
treed6afbee69f835cb7494d6d20adfc59b850cbe2b8
parentb17c36f46bb68f18406cb059ac8674382eb8b54e (diff)
downloadlibgnomekbd-rendering-cleanup.tar.gz
Remove erroneous GDK_DRAWABLE userendering-cleanup
-rw-r--r--libgnomekbd/gkbd-keyboard-drawing.c4
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"