Fix GTK3 build under Windows
This commit is contained in:
parent
750ac6e978
commit
18bc2d92c1
@ -653,8 +653,12 @@ gboolean socket_lock_input_cb(GIOChannel *source, GIOCondition condition, gpoint
|
|||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
else if (strncmp(buf, "window", 6) == 0)
|
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(
|
HWND hwnd = (HWND) gdk_win32_drawable_get_handle(
|
||||||
GDK_DRAWABLE(gtk_widget_get_window(window)));
|
GDK_DRAWABLE(gtk_widget_get_window(window)));
|
||||||
|
# endif
|
||||||
socket_fd_write(sock, (gchar *)&hwnd, sizeof(hwnd));
|
socket_fd_write(sock, (gchar *)&hwnd, sizeof(hwnd));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user