summaryrefslogtreecommitdiff
path: root/gtk/gtktestutils.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-07-12 05:29:54 +0200
committerBenjamin Otte <otte@redhat.com>2014-07-12 07:13:28 +0200
commit0be93f8e860bbaa7216de8e5ebe25529f099dd39 (patch)
treece1c0cb017411dcac2743453f5563d7a751baf75 /gtk/gtktestutils.c
parentfcbbe54936f0b0519836388e5827e55ef742625e (diff)
downloadgtk+-0be93f8e860bbaa7216de8e5ebe25529f099dd39.tar.gz
gtkx: Warn if we include gtkx.h during GTK compilation
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r--gtk/gtktestutils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index fa0067802d..b96a828f1b 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -19,7 +19,6 @@
#include "config.h"
-#include <gtk/gtkx.h>
#include "gtkspinbutton.h"
#include "gtkmain.h"
#include "gtkbox.h"
@@ -32,6 +31,14 @@
#include <string.h>
#include <math.h>
+/* This is a hack.
+ * We want to include the same headers as gtktypefuncs.c but we are not
+ * allowed to include gtkx.h directly during GTK compilation.
+ * So....
+ */
+#undef GTK_COMPILATION
+#include <gtk/gtkx.h>
+#define GTK_COMPILATION
/**
* SECTION:gtktesting