[geany/geany] 18bc2d: Fix GTK3 build under Windows
Yosef Or Boczko
git-noreply at xxxxx
Mon Jun 24 22:14:37 UTC 2013
Branch: refs/heads/master
Author: Yosef Or Boczko <yosefor3 at walla.com>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 24 Jun 2013 22:14:37 UTC
Commit: 18bc2d92c11a1bea2f244b57ee16d94d1bcbf64d
https://github.com/geany/geany/commit/18bc2d92c11a1bea2f244b57ee16d94d1bcbf64d
Log Message:
-----------
Fix GTK3 build under Windows
Modified Paths:
--------------
src/socket.c
Modified: src/socket.c
4 files changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -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
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list