summaryrefslogtreecommitdiff
path: root/gtk/gtkx-autocleanups.h
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2015-02-07 20:05:18 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2015-02-12 10:55:52 +0000
commit015bf99816969cff366e201169e6c54fd8b3cf3d (patch)
treecc78f91e938d35166fb89dc65c83b21134f638d1 /gtk/gtkx-autocleanups.h
parent973060deb5af4f458d95e95015a831dfadbf2dcf (diff)
downloadgtk+-015bf99816969cff366e201169e6c54fd8b3cf3d.tar.gz
gtk: x: fix compilation without x11 backend
https://bugzilla.gnome.org/show_bug.cgi?id=744148
Diffstat (limited to 'gtk/gtkx-autocleanups.h')
-rw-r--r--gtk/gtkx-autocleanups.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkx-autocleanups.h b/gtk/gtkx-autocleanups.h
index 3705ff4564..bc200a0207 100644
--- a/gtk/gtkx-autocleanups.h
+++ b/gtk/gtkx-autocleanups.h
@@ -19,9 +19,13 @@
#error "Only <gtk/gtkx.h> can be included directly."
#endif
+#ifdef GDK_WINDOWING_X11
+
#ifndef __GI_SCANNER__
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSocket, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPlug, g_object_unref)
#endif
+
+#endif