[clutter-gtk] Fix gtk-clutter-embed.c on non-X11 systems



commit a4049deb8fdb43e45c45efbca18e7e26c8c559b0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Aug 24 19:39:39 2011 +0800

    Fix gtk-clutter-embed.c on non-X11 systems
    
    The XEvent type/struct is something from the X11 libraries, which is
    most probably not available on systems that do not run X11.  Move the
    #ifdef HAVE_CLUTTER_GTK_X11 line forward to guard the XEvent line.

 clutter-gtk/gtk-clutter-embed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 27b68ee..9977ed7 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -183,9 +183,9 @@ gtk_clutter_filter_func (GdkXEvent *native_event,
                          GdkEvent  *event         G_GNUC_UNUSED,
                          gpointer   user_data     G_GNUC_UNUSED)
 {
+#ifdef HAVE_CLUTTER_GTK_X11
   XEvent *xevent = native_event;
 
-#ifdef HAVE_CLUTTER_GTK_X11
   /* let Clutter handle all events coming from the windowing system */
   clutter_x11_handle_event (xevent);
 #endif



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