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 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