TeplPanelSwitcherNotebook

TeplPanelSwitcherNotebook — A controller for TeplPanelContainer

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── TeplPanelSwitcherNotebook

Implemented Interfaces

TeplPanelSwitcherNotebook implements AtkImplementorIface and GtkBuildable.

Includes

#include <tepl/tepl.h>

Description

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.

Functions

tepl_panel_switcher_notebook_new ()

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.

Parameters

panel

a TeplPanelContainer.

 

notebook

a GtkNotebook.

 

Returns

a new TeplPanelSwitcherNotebook widget.

[transfer floating]

Since: 6.10

Types and Values

struct TeplPanelSwitcherNotebook

struct TeplPanelSwitcherNotebook;