[libgnomekbd] Fix call to gdk_window_create_similar_surface()
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Fix call to gdk_window_create_similar_surface()
- Date: Sat, 4 Dec 2010 23:46:10 +0000 (UTC)
commit 90305e3c37dde422552105eb5534b62891ad6f67
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 4 23:44:22 2010 +0000
Fix call to gdk_window_create_similar_surface()
Someone failed to catch this case when porting the code from
gdk_pixmap_new().
libgnomekbd/gkbd-keyboard-drawing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 43e4fa2..85d86e8 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1334,7 +1334,7 @@ draw_keyboard (GkbdKeyboardDrawing * drawing)
drawing->surface =
gdk_window_create_similar_surface (gtk_widget_get_window (GTK_WIDGET (drawing)),
- allocation.width, allocation.height, -1);
+ CAIRO_CONTENT_COLOR, allocation.width, allocation.height);
if (create_cairo (drawing)) {
/* blank background */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]