summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:34:33 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:42:02 +0000
commit40d6321b4cf3d229934ea60b6fede530db50161f (patch)
tree48cccddbb2b9655c9627d49b4220fdb4a6a2aaf5 /gtk/gtkwindow.h
parentd694a9a83b3e683acd99789a3d48b40b7841fda2 (diff)
downloadgtk+-40d6321b4cf3d229934ea60b6fede530db50161f.tar.gz
Move GtkWindow g_autoptr macros in the class header
Otherwise we won't be able to use G_DECLARE_* macros internally to GTK without generating warnings, or without including gtk.h itself.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index bd73697f38..9ca45bd07a 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -497,6 +497,11 @@ gboolean gtk_window_is_maximized (GtkWindow *window);
GDK_AVAILABLE_IN_3_14
void gtk_window_set_interactive_debugging (gboolean enable);
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindow, g_object_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindowGroup, g_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GTK_WINDOW_H__ */