summaryrefslogtreecommitdiff
path: root/katze/gtk3-compat.h
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2012-09-20 23:44:11 +0200
committerChristian Dywan <christian@twotoasts.de>2012-09-20 23:44:11 +0200
commitb9a06a52c79ba04dd06eb2356fc87c5b3f6e45b4 (patch)
treed195f0afb64c859ee4b2bc9f6d857d5e3447fae3 /katze/gtk3-compat.h
parent88d446741aaf1eb9ff574462fe557389eb1a3d74 (diff)
downloadmidori-b9a06a52c79ba04dd06eb2356fc87c5b3f6e45b4.tar.gz
Refine GDK_IS_X11_DISPLAY fallback to avoid warnings
Diffstat (limited to 'katze/gtk3-compat.h')
-rw-r--r--katze/gtk3-compat.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/katze/gtk3-compat.h b/katze/gtk3-compat.h
index a8450af2..28f38e9e 100644
--- a/katze/gtk3-compat.h
+++ b/katze/gtk3-compat.h
@@ -116,8 +116,11 @@ G_BEGIN_DECLS
#define GDK_KEY_Return GDK_Return
#endif
-#ifndef GDK_IS_X11_DISPLAY
- #define GDK_IS_X11_DISPLAY(display) TRUE
+#ifdef GDK_WINDOWING_X11
+ #include <gdk/gdkx.h>
+ #ifndef GDK_IS_X11_DISPLAY
+ #define GDK_IS_X11_DISPLAY(display) TRUE
+ #endif
#endif
G_END_DECLS