The
gtk:stack-switcher widget acts as a controller for a
gtk:stack widget.
It shows a row of buttons to switch between the various pages of the
associated stack widget.
Figure: GtkStackSwitcher
All the content for the buttons comes from the child properties of the
gtk:stack widget. The button visibility in a
gtk:stack-switcher widget is controlled by the visibility of the child widget in the
gtk:stack widget.
It is possible to associate multiple
gtk:stack-switcher widgets with the same
gtk:stack widget.
CSS nodes
The
gtk:stack-switcher implementation has a single CSS node named
stackswitcher and
.stack-switcher style class. When circumstances require it, the
gtk:stack-switcher widget adds the
.needs-attention style class to the widgets representing the stack
pages.