ViewStack.getPages

Returns a [gio.list_model.ListModel] that contains the pages of the stack.

This can be used to keep an up-to-date view. The model also implements [gtk.selection_model.SelectionModel] and can be used to track and change the visible page.

Returns

a [gtk.selection_model.SelectionModel] for the stack's children