Toggle buttons that change the view, like tabs
Allan Day
aday@gnome.org

This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.

Fran Dieguez
frandieguez@gnome.org 2019.

# View switchers

A view switcher is a control that allows switching between a number of predefined views. It appears as a set of toggle buttons that are placed in the center of a header bar.

# Cando usala

There are two primary cases when a view switcher is appropriate:

When presenting content, and it is useful to be able to view different sets or sub-sets of content. For example, a music application could show different views for artists, albums and playlists.

If your application provides discrete groups of functionality which are typically used independently.

As a rule of thumb, a view switcher should contain between three and five views. If you have more views, a sidebar list might be a more appropriate view switching control.

# Additional guidelines

Each view should have a short and clear title.

Buttons in the view switcher widget can indicate when there is activity in a view.

# Referencia da API

GtkStack

GtkStackSwitcher