[gnome-terminal] client: Include gdk



commit 68f6569cc4d632234c2f16ec6cff184e99be2738
Author: Christian Persch <chpe gnome org>
Date:   Sun Jan 20 14:46:26 2013 +0100

    client: Include gdk
    
    Include gdk first, so GDK_WINDOWING_* is defined. Use #ifdef instead of #if.

 src/terminal-client-utils.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-client-utils.c b/src/terminal-client-utils.c
index d30ea1a..5c44494 100644
--- a/src/terminal-client-utils.c
+++ b/src/terminal-client-utils.c
@@ -27,7 +27,8 @@
 
 #include <gio/gio.h>
 
-#if GDK_WINDOWING_X11
+#include <gdk/gdk.h>
+#ifdef GDK_WINDOWING_X11
 #include <gdk/gdkx.h>
 #endif
 
@@ -137,7 +138,7 @@ terminal_client_append_exec_options (GVariantBuilder *builder,
 void 
 terminal_client_get_fallback_startup_id  (char **startup_id)
 {
-#if GDK_WINDOWING_X11
+#ifdef GDK_WINDOWING_X11
   GdkDisplay *display;
   Display *xdisplay;
   Window xwindow;



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