[Xfce4-commits] <midori:master> Refine GDK_IS_X11_DISPLAY fallback to avoid warnings

Christian Dywan noreply at xfce.org
Thu Sep 20 23:46:03 CEST 2012


Updating branch refs/heads/master
         to b58bb3edae3086201ff38f62d37ee58bd7f7f706 (commit)
       from 975dded90e57e54817187b5791c05781ae5579f1 (commit)

commit b58bb3edae3086201ff38f62d37ee58bd7f7f706
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Sep 20 22:14:30 2012 +0200

    Refine GDK_IS_X11_DISPLAY fallback to avoid warnings

 katze/gtk3-compat.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/katze/gtk3-compat.h b/katze/gtk3-compat.h
index a8450af..28f38e9 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


More information about the Xfce4-commits mailing list