summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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