From 18bc2d92c11a1bea2f244b57ee16d94d1bcbf64d Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Wed, 19 Sep 2012 09:00:50 +0300 Subject: [PATCH] Fix GTK3 build under Windows --- src/socket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/socket.c b/src/socket.c index ec472601..fadb2b7e 100644 --- a/src/socket.c +++ b/src/socket.c @@ -653,8 +653,12 @@ gboolean socket_lock_input_cb(GIOChannel *source, GIOCondition condition, gpoint #ifdef G_OS_WIN32 else if (strncmp(buf, "window", 6) == 0) { +# if GTK_CHECK_VERSION(3, 0, 0) + HWND hwnd = (HWND) gdk_win32_window_get_handle(gtk_widget_get_window(window)); +# else HWND hwnd = (HWND) gdk_win32_drawable_get_handle( GDK_DRAWABLE(gtk_widget_get_window(window))); +# endif socket_fd_write(sock, (gchar *)&hwnd, sizeof(hwnd)); } #endif