diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h index 8eae230f44..f0328ab4a4 100644 --- a/gtk/gtk-autocleanups.h +++ b/gtk/gtk-autocleanups.h @@ -21,7 +21,6 @@ #ifndef __GI_SCANNER__ -G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAboutDialog, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelLabel, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelMap, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccessible, g_object_unref) diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h index 341f75f325..fd7081c1aa 100644 --- a/gtk/gtkaboutdialog.h +++ b/gtk/gtkaboutdialog.h @@ -204,6 +204,10 @@ void gtk_about_dialog_add_credit_section (GtkAboutDialog const gchar *section_name, const gchar **people); +#ifndef __GI_SCANNER__ +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAboutDialog, g_object_unref) +#endif + G_END_DECLS #endif /* __GTK_ABOUT_DIALOG_H__ */