[gtk+] gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE



commit cf752786f3e72fb9ab97e144eb4171b17b7b4126
Author: Nguy�n Thái Ng�c Duy <pclouds gmail com>
Date:   Tue Dec 28 10:20:11 2010 +0700

    gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE
    
    Signed-off-by: Nguy�n Thái Ng�c Duy <pclouds gmail com>

 gdk/x11/gdkdnd-x11.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 313bb4f..0cb66c5 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -41,7 +41,9 @@
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #include <X11/extensions/shape.h>
+#ifdef HAVE_XCOMPOSITE
 #include <X11/extensions/Xcomposite.h>
+#endif
 
 #include <string.h>
 
@@ -498,7 +500,9 @@ gdk_window_cache_new (GdkScreen *screen)
   GdkWindow *root_window = gdk_screen_get_root_window (screen);
   GdkChildInfoX11 *children;
   guint nchildren, i;
+#ifdef HAVE_XCOMPOSITE
   Window cow;
+#endif
 
   GdkWindowCache *result = g_new (GdkWindowCache, 1);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]