Fix GTK3 build under Windows

This commit is contained in:
Yosef Or Boczko 2012-09-19 09:00:50 +03:00 committed by Colomban Wendling
parent 750ac6e978
commit 18bc2d92c1

View File

@ -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