stack: Add automatic cleanup for GtkStackPage

Useful when iterating over the pages via g_list_model_get_item ().
This commit is contained in:
Guido Günther 2024-01-15 11:36:00 +01:00
parent c6967234de
commit da954d20f9

View File

@ -179,6 +179,7 @@ GDK_AVAILABLE_IN_ALL
GtkSelectionModel * gtk_stack_get_pages (GtkStack *stack);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkStack, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkStackPage, g_object_unref)
G_END_DECLS