Class

AdwTabButton

Description [src]

final class Adw.TabButton : Gtk.Widget {
  /* No available fields */
}

A button that displays the number of AdwTabView pages.

tab-button

AdwTabButton is a button that displays the number of pages in a given AdwTabView, as well as whether one of the inactive pages needs attention.

It’s intended to be used as a visible indicator when there’s no visible tab bar, typically opening an AdwTabOverview on click, e.g. via the overview.open action name:

<object class="AdwTabButton">
  <property name="view">view</property>
  <property name="action-name">overview.open</property>
</object>

CSS nodes

AdwTabButton has a main CSS node with name tabbutton.

Accessibility

AdwTabButton uses the GTK_ACCESSIBLE_ROLE_BUTTON role.

Available since:1.3

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkActionable
  • GtkBuildable
  • GtkConstraintTarget

Constructors

adw_tab_button_new

Creates a new AdwTabButton.

Available since: 1.3

Instance methods

adw_tab_button_get_view

Gets the tab view self displays.

Available since: 1.3

adw_tab_button_set_view

Sets the tab view to display.

Available since: 1.3

Properties

Adw.TabButton:view

The view the tab button displays.

Available since: 1.3

Signals

Adw.TabButton::activate

Emitted to animate press then release.

Available since: 1.3

Adw.TabButton::clicked

Emitted when the button has been activated (pressed and released).

Available since: 1.3

Class structure

struct AdwTabButtonClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.