/pidgin/main: fce9167b25c2: Fix compilation on GTK2

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Tue Nov 6 20:44:37 EST 2012


Changeset: fce9167b25c220eada0e90fc2fa109892230c9f4
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-11-07 02:44 +0100
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/fce9167b25c2

Description:

Fix compilation on GTK2

diffstat:

 pidgin/gtk3compat.h |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (20 lines):

diff --git a/pidgin/gtk3compat.h b/pidgin/gtk3compat.h
--- a/pidgin/gtk3compat.h
+++ b/pidgin/gtk3compat.h
@@ -37,6 +37,16 @@
 #define gdk_x11_window_get_xid GDK_WINDOW_XWINDOW
 #define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,z)
 
+#ifdef GDK_WINDOWING_X11
+#define GDK_IS_X11_WINDOW(window) TRUE
+#endif
+#ifdef GDK_WINDOWING_WIN32
+#define GDK_IS_WIN32_WINDOW(window) TRUE
+#endif
+#ifdef GDK_WINDOWING_QUARTZ
+#define GDK_IS_QUARTZ_WINDOW(window) TRUE
+#endif
+
 #if !GTK_CHECK_VERSION(2,24,0)
 
 #define gdk_x11_set_sm_client_id gdk_set_sm_client_id



More information about the Commits mailing list