[Spice-devel] [PATCH 4/5] build: fixes build with gtk3 on win32

Marc-André Lureau marcandre.lureau at gmail.com
Wed Aug 17 05:45:14 PDT 2011


---
 gtk/spice-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index a6a0a12..208762e 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -867,7 +867,7 @@ static gboolean focus_in_event(GtkWidget *widget, GdkEventFocus *focus G_GNUC_UN
     d->keyboard_have_focus = true;
     try_keyboard_grab(display);
 #ifdef WIN32
-    focus_window = (HWND)gdk_win32_drawable_get_handle(GDK_DRAWABLE(widget->window));
+    focus_window = GDK_WINDOW_HWND(gtk_widget_get_window(widget));
     g_return_val_if_fail(focus_window != NULL, true);
 #endif
     return true;
-- 
1.7.6



More information about the Spice-devel mailing list