summaryrefslogtreecommitdiff
path: root/gtk/gtklistbox.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:48:31 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-11-10 13:48:31 +0000
commit862007fe1c33948d78e1abf208d94d54490eee5c (patch)
tree30cb660470ca53e00b4c58fbd7363d806d589bca /gtk/gtklistbox.h
parent0d4a010cbbfc565c0cc8ffc6765746279d104279 (diff)
downloadgtk+-862007fe1c33948d78e1abf208d94d54490eee5c.tar.gz
Move GtkListBox g_autoptr macros to the class header
This allows GtkPlacesViewRow to use G_DECLARE_FINAL_TYPE without having to include gtk.h.
Diffstat (limited to 'gtk/gtklistbox.h')
-rw-r--r--gtk/gtklistbox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtklistbox.h b/gtk/gtklistbox.h
index 71200875c5..61c00d88ec 100644
--- a/gtk/gtklistbox.h
+++ b/gtk/gtklistbox.h
@@ -313,6 +313,11 @@ void gtk_list_box_bind_model (GtkListBox
gpointer user_data,
GDestroyNotify user_data_free_func);
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListBox, g_object_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListBoxRow, g_object_unref)
+#endif
+
G_END_DECLS
#endif