1.62 <AdwTabButton>

Class: <AdwTabButton>

It derives from <GtkWidget>.

A button that displays the number of TabView pages.

<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 TabOverview 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.AccessibleRole.button role.

Properties

Property: tab-button:view self

The view the tab button displays.

Its value is a <AdwTabView>, or #f.

Set it with (set! (tab-button:view self) value).

Procedures

Method: tab-button:get-view self ⇒ %return
Method: get-view self ⇒ %return

Gets the tab view self displays.

self

Passed: a <AdwTabButton>.

a tab button

%return

Returned: a <AdwTabView>, or #f.

the tab view

Procedure: tab-button:new ⇒ %return

Creates a new <AdwTabButton>.

%return

Returned: a <GtkWidget>.

the newly created <AdwTabButton>

Method: tab-button:set-view self [view]
Method: set-view self [view]

Sets the tab view to display.

self

Passed: a <AdwTabButton>.

a tab button

view

Passed, or left out: a <AdwTabView>, or #f.

a tab view

Signals

Signal: tab-button:activate

Connect a handler with (connect object tab-button:activate handler). It is called as (handler self).

Emitted to animate press then release.

This is an action signal. Applications should never connect to this signal, but use the "clicked" signal.

self

Passed: a <AdwTabButton>.

Signal: tab-button:clicked

Connect a handler with (connect object tab-button:clicked handler). It is called as (handler self).

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

self

Passed: a <AdwTabButton>.