public class Stack : Widget, Accessible, Buildable, ConstraintTarget
The GtkStack widget is a container which only shows one of its children at a time.
In contrast to GtkNotebook, GtkStack does not provide a means for users to change the visible child. Instead, the StackSwitcher widget can be used with GtkStack to provide this functionality.
GtkStack as GtkBuildable
To set child-specific properties in a .ui file, create GtkStackPage objects explicitly, and set the child widget as a property on it:
# CSS nodes
<object class="GtkStack" id="stack">
<property name="title">In the beginning…</property>
<property name="label">It was dark</property>
GtkStack has a single CSS node named stack.
GtkStack uses the TAB_PANEL for the stack pages, which are the accessible parent objects of the child widgets.