1.64 <AdwTabPage>

Class: <AdwTabPage>

It derives from <GObject>.

An auxiliary class used by TabView.

Properties

Property: tab-page:child self

The child of the page.

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

It can only be set when the object is made, with #:child.

Property: tab-page:icon self

The icon of the page.

TabBar and TabOverview display the icon next to the title, unless TabPage:loading is set to TRUE.

<AdwTabBar> also won’t show the icon if the page is pinned and [propertyTabPage:indicator-icon] is set.

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

Set it with (set! (tab-page:icon self) value).

Property: tab-page:indicator-activatable self

Whether the indicator icon is activatable.

If set to TRUE, "indicator-activated" will be emitted when the indicator icon is clicked.

If TabPage:indicator-icon is not set, does nothing.

Its value is a boolean.

Set it with (set! (tab-page:indicator-activatable self) value).

Property: tab-page:indicator-icon self

An indicator icon for the page.

A common use case is an audio or camera indicator in a web browser.

TabBar will show it at the beginning of the tab, alongside icon representing TabPage:icon or loading spinner.

If the page is pinned, the indicator will be shown instead of icon or spinner.

TabOverview will show it at the at the top part of the thumbnail.

TabPage:indicator-tooltip can be used to set the tooltip on the indicator icon.

If TabPage:indicator-activatable is set to TRUE, the indicator icon can act as a button.

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

Set it with (set! (tab-page:indicator-icon self) value).

Property: tab-page:indicator-tooltip self

The tooltip of the indicator icon.

The tooltip can be marked up with the Pango text markup language.

See TabPage:indicator-icon.

Its value is a string, or #f.

Set it with (set! (tab-page:indicator-tooltip self) value).

Property: tab-page:keyword self

The search keyboard of the page.

TabOverview can search pages by their keywords in addition to their titles and tooltips.

Keywords allow to include e.g. page URLs into tab search in a web browser.

Its value is a string, or #f.

Set it with (set! (tab-page:keyword self) value).

Property: tab-page:live-thumbnail self

Whether to enable live thumbnail for this page.

When set to TRUE, the page’s thumbnail in TabOverview will update immediately when the page is redrawn or resized.

If it’s set to FALSE, the thumbnail will only be live when the page is selected, and otherwise it will be static and will only update when TabPage.invalidate_thumbnail or TabView.invalidate_thumbnails is called.

Its value is a boolean.

Set it with (set! (tab-page:live-thumbnail self) value).

Property: tab-page:loading self

Whether the page is loading.

If set to TRUE, TabBar and TabOverview will display a spinner in place of icon.

If the page is pinned and TabPage:indicator-icon is set, loading status will not be visible with <AdwTabBar>.

Its value is a boolean.

Set it with (set! (tab-page:loading self) value).

Property: tab-page:needs-attention self

Whether the page needs attention.

TabBar will display a line under the tab representing the page if set to TRUE. If the tab is not visible, the corresponding edge of the tab bar will be highlighted.

TabOverview will display a dot in the corner of the thumbnail if set to TRUE.

TabButton will display a dot if any of the pages that aren’t selected have this property set to TRUE.

Its value is a boolean.

Set it with (set! (tab-page:needs-attention self) value).

Property: tab-page:parent self

The parent page of the page.

See TabView.add_page and TabView.close_page.

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

It can only be set when the object is made, with #:parent.

Property: tab-page:pinned self

Whether the page is pinned.

See TabView.set_page_pinned.

Its value is a boolean.

It is read only.

Property: tab-page:selected self

Whether the page is selected.

Its value is a boolean.

It is read only.

Property: tab-page:thumbnail-xalign self

The horizontal alignment of the page thumbnail.

If the page is so wide that TabOverview can’t display it completely and has to crop it, horizontal alignment will determine which part of the page will be visible.

For example, 0.5 means the center of the page will be visible, 0 means the start edge will be visible and 1 means the end edge will be visible.

The default horizontal alignment is 0.

Its value is a real number.

Set it with (set! (tab-page:thumbnail-xalign self) value).

Property: tab-page:thumbnail-yalign self

The vertical alignment of the page thumbnail.

If the page is so tall that TabOverview can’t display it completely and has to crop it, vertical alignment will determine which part of the page will be visible.

For example, 0.5 means the center of the page will be visible, 0 means the top edge will be visible and 1 means the bottom edge will be visible.

The default vertical alignment is 0.

Its value is a real number.

Set it with (set! (tab-page:thumbnail-yalign self) value).

Property: tab-page:title self

The title of the page.

TabBar will display it in the center of the tab unless it’s pinned, and will use it as a tooltip unless TabPage:tooltip is set.

TabOverview will display it below the thumbnail unless it’s pinned, or inside the card otherwise, and will use it as a tooltip unless TabPage:tooltip is set.

Its value is a string, or #f.

Set it with (set! (tab-page:title self) value).

Property: tab-page:tooltip self

The tooltip of the page.

The tooltip can be marked up with the Pango text markup language.

If not set, TabBar and TabOverview will use TabPage:title as a tooltip instead.

Its value is a string, or #f.

Set it with (set! (tab-page:tooltip self) value).

Procedures

Method: tab-page:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a <GtkWidget>.

the child of self

Method: tab-page:get-icon self ⇒ %return
Method: get-icon self ⇒ %return

Gets the icon of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a <GIcon>, or #f.

the icon of self

Method: tab-page:get-indicator-activatable? self ⇒ %return
Method: get-indicator-activatable? self ⇒ %return

Gets whether the indicator of self is activatable.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a boolean.

whether the indicator is activatable

Method: tab-page:get-indicator-icon self ⇒ %return
Method: get-indicator-icon self ⇒ %return

Gets the indicator icon of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a <GIcon>, or #f.

the indicator icon of self

Method: tab-page:get-indicator-tooltip self ⇒ %return
Method: get-indicator-tooltip self ⇒ %return

Gets the tooltip of the indicator icon of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a string.

the indicator tooltip of self

Method: tab-page:get-keyword self ⇒ %return
Method: get-keyword self ⇒ %return

Gets the search keyword of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a string, or #f.

the search keyword of self

Method: tab-page:get-live-thumbnail? self ⇒ %return
Method: get-live-thumbnail? self ⇒ %return

Gets whether to live thumbnail is enabled self.

self

Passed: a <AdwTabPage>.

a tab overview

%return

Returned: a boolean.

whether live thumbnail is enabled

Method: tab-page:get-loading? self ⇒ %return
Method: get-loading? self ⇒ %return

Gets whether self is loading.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a boolean.

whether self is loading

Method: tab-page:get-needs-attention? self ⇒ %return
Method: get-needs-attention? self ⇒ %return

Gets whether self needs attention.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a boolean.

whether self needs attention

Method: tab-page:get-parent self ⇒ %return
Method: get-parent self ⇒ %return

Gets the parent page of self.

See TabView.add_page and TabView.close_page.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a <AdwTabPage>, or #f.

the parent page

Method: tab-page:get-pinned? self ⇒ %return
Method: get-pinned? self ⇒ %return

Gets whether self is pinned.

See TabView.set_page_pinned.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a boolean.

whether self is pinned

Method: tab-page:get-selected? self ⇒ %return
Method: get-selected? self ⇒ %return

Gets whether self is selected.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a boolean.

whether self is selected

Method: tab-page:get-thumbnail-xalign self ⇒ %return
Method: get-thumbnail-xalign self ⇒ %return

Gets the horizontal alignment of the thumbnail for self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a real number.

the horizontal alignment

Method: tab-page:get-thumbnail-yalign self ⇒ %return
Method: get-thumbnail-yalign self ⇒ %return

Gets the vertical alignment of the thumbnail for self.

self

Passed: a <AdwTabPage>.

a tab overview

%return

Returned: a real number.

the vertical alignment

Method: tab-page:get-title self ⇒ %return
Method: get-title self ⇒ %return

Gets the title of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a string.

the title of self

Method: tab-page:get-tooltip self ⇒ %return
Method: get-tooltip self ⇒ %return

Gets the tooltip of self.

self

Passed: a <AdwTabPage>.

a tab page

%return

Returned: a string, or #f.

the tooltip of self

Method: tab-page:invalidate-thumbnail self
Method: invalidate-thumbnail self

Invalidates thumbnail for self.

If an TabOverview is open, the thumbnail representing self will be immediately updated. Otherwise it will be update when opening the overview.

Does nothing if TabPage:live-thumbnail is set to TRUE.

See also TabView.invalidate_thumbnails.

self

Passed: a <AdwTabPage>.

a tab page

Method: tab-page:set-icon self [icon]
Method: set-icon self [icon]

Sets the icon of self.

TabBar and TabOverview display the icon next to the title, unless TabPage:loading is set to TRUE.

<AdwTabBar> also won’t show the icon if the page is pinned and [propertyTabPage:indicator-icon] is set.

self

Passed: a <AdwTabPage>.

a tab page

icon

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

the icon of self

Method: tab-page:set-indicator-activatable self activatable
Method: set-indicator-activatable self activatable

Sets whether the indicator of self is activatable.

If set to TRUE, "indicator-activated" will be emitted when the indicator icon is clicked.

If TabPage:indicator-icon is not set, does nothing.

self

Passed: a <AdwTabPage>.

a tab page

activatable

Passed: a boolean.

whether the indicator is activatable

Method: tab-page:set-indicator-icon self [indicator-icon]
Method: set-indicator-icon self [indicator-icon]

Sets the indicator icon of self.

A common use case is an audio or camera indicator in a web browser.

TabBar will show it at the beginning of the tab, alongside icon representing TabPage:icon or loading spinner.

If the page is pinned, the indicator will be shown instead of icon or spinner.

TabOverview will show it at the at the top part of the thumbnail.

TabPage:indicator-tooltip can be used to set the tooltip on the indicator icon.

If TabPage:indicator-activatable is set to TRUE, the indicator icon can act as a button.

self

Passed: a <AdwTabPage>.

a tab page

indicator-icon

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

the indicator icon of self

Method: tab-page:set-indicator-tooltip self tooltip
Method: set-indicator-tooltip self tooltip

Sets the tooltip of the indicator icon of self.

The tooltip can be marked up with the Pango text markup language.

See TabPage:indicator-icon.

self

Passed: a <AdwTabPage>.

a tab page

tooltip

Passed: a string.

the indicator tooltip of self

Method: tab-page:set-keyword self keyword
Method: set-keyword self keyword

Sets the search keyword for self.

TabOverview can search pages by their keywords in addition to their titles and tooltips.

Keywords allow to include e.g. page URLs into tab search in a web browser.

self

Passed: a <AdwTabPage>.

a tab page

keyword

Passed: a string.

the search keyword

Method: tab-page:set-live-thumbnail self live-thumbnail
Method: set-live-thumbnail self live-thumbnail

Sets whether to enable live thumbnail for self.

When set to TRUE, self’s thumbnail in TabOverview will update immediately when self is redrawn or resized.

If it’s set to FALSE, the thumbnail will only be live when the self is selected, and otherwise it will be static and will only update when TabPage.invalidate_thumbnail or TabView.invalidate_thumbnails is called.

self

Passed: a <AdwTabPage>.

a tab page

live-thumbnail

Passed: a boolean.

whether to enable live thumbnail

Method: tab-page:set-loading self loading
Method: set-loading self loading

Sets whether self is loading.

If set to TRUE, TabBar and TabOverview will display a spinner in place of icon.

If the page is pinned and TabPage:indicator-icon is set, loading status will not be visible with <AdwTabBar>.

self

Passed: a <AdwTabPage>.

a tab page

loading

Passed: a boolean.

whether self is loading

Method: tab-page:set-needs-attention self needs-attention
Method: set-needs-attention self needs-attention

Sets whether self needs attention.

TabBar will display a line under the tab representing the page if set to TRUE. If the tab is not visible, the corresponding edge of the tab bar will be highlighted.

TabOverview will display a dot in the corner of the thumbnail if set to TRUE.

TabButton will display a dot if any of the pages that aren’t selected have TabPage:needs-attention set to TRUE.

self

Passed: a <AdwTabPage>.

a tab page

needs-attention

Passed: a boolean.

whether self needs attention

Method: tab-page:set-thumbnail-xalign self xalign
Method: set-thumbnail-xalign self xalign

Sets the horizontal alignment of the thumbnail for self.

If the page is so wide that TabOverview can’t display it completely and has to crop it, horizontal alignment will determine which part of the page will be visible.

For example, 0.5 means the center of the page will be visible, 0 means the start edge will be visible and 1 means the end edge will be visible.

The default horizontal alignment is 0.

self

Passed: a <AdwTabPage>.

a tab page

xalign

Passed: a real number.

the new value

Method: tab-page:set-thumbnail-yalign self yalign
Method: set-thumbnail-yalign self yalign

Sets the vertical alignment of the thumbnail for self.

If the page is so tall that TabOverview can’t display it completely and has to crop it, vertical alignment will determine which part of the page will be visible.

For example, 0.5 means the center of the page will be visible, 0 means the top edge will be visible and 1 means the bottom edge will be visible.

The default vertical alignment is 0.

self

Passed: a <AdwTabPage>.

a tab page

yalign

Passed: a real number.

the new value

Method: tab-page:set-title self title
Method: set-title self title

TabBar will display it in the center of the tab unless it’s pinned, and will use it as a tooltip unless TabPage:tooltip is set.

TabOverview will display it below the thumbnail unless it’s pinned, or inside the card otherwise, and will use it as a tooltip unless TabPage:tooltip is set.

Sets the title of self.

self

Passed: a <AdwTabPage>.

a tab page

title

Passed: a string.

the title of self

Method: tab-page:set-tooltip self tooltip
Method: set-tooltip self tooltip

Sets the tooltip of self.

The tooltip can be marked up with the Pango text markup language.

If not set, TabBar and TabOverview will use TabPage:title as a tooltip instead.

self

Passed: a <AdwTabPage>.

a tab page

tooltip

Passed: a string.

the tooltip of self