Top |
TeplPanelSwitcherNotebookTeplPanelSwitcherNotebook — A controller for TeplPanelContainer |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── TeplPanelSwitcherNotebook
Similar to GtkStackSwitcher, but for a TeplPanelContainer.
This switcher widget contains a GtkNotebook, but only the tab labels are used. It uses empty (zero-sized) pages, because the real content widgets are part of the TeplPanelContainer.
The TeplPanelContainer is not packed inside the TeplPanelSwitcherNotebook, the latter just has a reference to the former.
This class is useful if you want to expose only TeplPanel in an API, but you want the same style as GtkNotebook tab labels.
TeplPanelSwitcherNotebook * tepl_panel_switcher_notebook_new (TeplPanelContainer *panel
,GtkNotebook *notebook
);
Creates a new TeplPanelSwitcherNotebook.
notebook
needs to be empty (no pages), and should be pre-configured. Then
the TeplPanelSwitcherNotebook will handle notebook
, so you should not
modify notebook
afterwards. The goal is to configure the GtkNotebook in the
way it is desired in your application.
Since: 6.10