It derives from <GtkWidget>.
A tab overview for TabView.
<AdwTabOverview> is a widget that can display
tabs from an <AdwTabView> in a grid.
<AdwTabOverview> shows a thumbnail for each
tab. By default thumbnails are static for all pages except the selected
one. They can be made always live by setting
TabPage:live-thumbnail to TRUE, or refreshed with
TabPage.invalidate_thumbnail or
TabView.invalidate_thumbnails otherwise.
If the pages are too tall or too wide, the thumbnails will be cropped;
use TabPage:thumbnail-xalign and TabPage:thumbnail-yalign
to control which part of the page should be visible in this case.
Pinned tabs are shown as smaller cards without thumbnails above the
other tabs. Unlike in TabBar, they still have titles, as well as
an unpin button.
<AdwTabOverview> provides search in open tabs.
It searches in tab titles and tooltips, as well as
TabPage:keyword.
If TabOverview:enable-new-tab is set to TRUE, a new tab
button will be shown. Connect to the "create-tab" signal to use
it.
TabOverview:secondary-menu can be used to provide a secondary
menu for the overview. Use it to add extra actions, e.g. to open a new
window or undo closed tab.
<AdwTabOverview> is intended to be used as the
direct child of the window, with the rest of the window contents set as
the TabOverview:child. The child is expected to contain an
TabView.
<AdwTabOverview> shows window buttons by
default. They can be disabled by setting
TabOverview:show-start-title-buttons and/or
TabOverview:show-start-title-buttons and/or
TabOverview:show-end-title-buttons to FALSE.
If search and window buttons are disabled, and secondary menu is not set, the header bar will be hidden.
<AdwTabOverview> thumbnails can have an
additional drop target for arbitrary content.
Use TabOverview.setup_extra_drop_target to set it up, specifying
the supported content types and drag actions, then connect to
"extra-drag-drop" to handle a drop.
In some cases, it may be necessary to determine the used action based on
the content. In that case, set TabOverview:extra-drag-preload to
TRUE and connect to "extra-drag-value" signal, then return
the action from its handler. To access this action from the
"extra-drag-drop" handler, use the
TabOverview:extra-drag-preferred-action property.
"extra-drag-value" is also always emitted when starting to hover
an item, with a NULL value. This happens even when
TabOverview:extra-drag-preload is FALSE.
<AdwTabOverview> defines the
overview.open and overview.close actions for opening and
closing itself. They can be convenient when used together with
TabButton.
<AdwTabOverview> has a single CSS node with
name taboverview.
The child widget.
Its value is a <GtkWidget>, or #f.
Set it with (set! (tab-overview:child self) value).
Whether to enable new tab button.
Connect to the "create-tab" signal to use it.
Its value is a boolean.
Set it with (set! (tab-overview:enable-new-tab self) value).
Whether to enable search in tabs.
Search matches tab titles and tooltips, as well as keywords, set via
TabPage:keyword. Use keywords to search in e.g. page URLs in a
web browser.
During search, tab reordering and drag-n-drop are disabled.
Use TabOverview:search-active to check out if search is currently
active.
Its value is a boolean.
Set it with (set! (tab-overview:enable-search self) value).
The current drag action during a drop.
This property should only be used from inside a "extra-drag-drop"
handler.
The action will be a subset of what was originally passed to
TabOverview.setup_extra_drop_target.
Its value is a <GdkDragAction>.
It is read only.
Whether the drop data should be preloaded on hover.
See drop-target:preload.
Its value is a boolean.
Set it with (set! (tab-overview:extra-drag-preload self) value).
Whether thumbnails use inverted layout.
If set to TRUE, thumbnails will have the close or unpin buttons
at the beginning and the indicator at the end rather than the other way
around.
Its value is a boolean.
Set it with (set! (tab-overview:inverted self) value).
Whether the overview is open.
Its value is a boolean.
Set it with (set! (tab-overview:open self) value).
Whether search is currently active.
See TabOverview:enable-search.
Its value is a boolean.
It is read only.
The secondary menu model.
Use it to add extra actions, e.g. to open a new window or undo closed tab.
Its value is a <GMenuModel>, or #f.
Set it with (set! (tab-overview:secondary-menu self) value).
Whether to show end title buttons in the overview’s header bar.
See HeaderBar:show-start-title-buttons for the other side.
Its value is a boolean.
Set it with (set! (tab-overview:show-end-title-buttons self)
value).
Whether to show start title buttons in the overview’s header bar.
See HeaderBar:show-end-title-buttons for the other side.
Its value is a boolean.
Set it with (set! (tab-overview:show-start-title-buttons self)
value).
The tab view the overview controls.
The view must be inside the tab overview, see TabOverview:child.
Its value is a <AdwTabView>, or #f.
Set it with (set! (tab-overview:view self) value).
Gets the child widget of self.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a <GtkWidget>, or #f.
the child widget of self
Gets whether to new tab button is enabled for self.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether new tab button is enabled
Gets whether search in tabs is enabled for self.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether search is enabled
Gets the current action during a drop on the extra_drop_target.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a <GdkDragAction>.
the drag action of the current drop.
Gets the current drag action during a drop.
This method should only be used from inside a "extra-drag-drop"
handler.
The action will be a subset of what was originally passed to
TabOverview.setup_extra_drop_target.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
the drag action of the current drop
Gets whether thumbnails use inverted layout.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether thumbnails use inverted layout
Gets whether self is open.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether the overview is open
Gets whether search is currently active for self.
See TabOverview:enable-search.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether search is active
Gets the secondary menu model for self.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a <GMenuModel>, or #f.
the secondary menu model
Gets whether end title buttons are shown in self’s header bar.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether end title buttons are shown
Gets whether start title buttons are shown in self’s header bar.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a boolean.
whether start title buttons are shown
Gets the tab view self controls.
Passed: a <AdwTabOverview>.
a tab overview
Returned: a <AdwTabView>, or #f.
the tab view
Creates a new <AdwTabOverview>.
Returned: a <GtkWidget>.
the newly created <AdwTabOverview>
Sets the child widget of self.
Passed: a <AdwTabOverview>.
a tab overview
Passed, or left out: a <GtkWidget>, or
#f.
the child widget
Sets whether to enable new tab button for self.
Connect to the "create-tab" signal to use it.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether to enable new tab button
Sets whether to enable search in tabs for self.
Search matches tab titles and tooltips, as well as keywords, set via
TabPage:keyword. Use keywords to search in e.g. page URLs in a
web browser.
During search, tab reordering and drag-n-drop are disabled.
Use TabOverview:search-active to check out if search is currently
active.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether to enable search
Sets whether drop data should be preloaded on hover.
See drop-target:preload.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether to preload drop data
Sets whether thumbnails use inverted layout.
If set to TRUE, thumbnails will have the close or unpin button at
the beginning and the indicator at the end rather than the other way
around.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether thumbnails use inverted layout
Sets whether the to open self.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether the overview is open
Sets the secondary menu model for self.
Use it to add extra actions, e.g. to open a new window or undo closed tab.
Passed: a <AdwTabOverview>.
a tab overview
Passed, or left out: a <GMenuModel>, or
#f.
a menu model
Sets whether to show end title buttons in self’s header bar.
See HeaderBar:show-start-title-buttons for the other side.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether to show end title buttons
Sets whether to show start title buttons in self’s header bar.
See HeaderBar:show-end-title-buttons for the other side.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a boolean.
whether to show start title buttons
Sets the tab view to control.
The view must be inside self, see TabOverview:child.
Passed: a <AdwTabOverview>.
a tab overview
Passed, or left out: a <AdwTabView>, or #f.
a tab view
Sets up an extra drop target on tabs.
This allows to drag arbitrary content onto tabs, for example URLs in a web browser.
If a tab is hovered for a certain period of time while dragging the content, it will be automatically selected.
The "extra-drag-drop" signal can be used to handle the drop.
Passed: a <AdwTabOverview>.
a tab overview
Passed: a <GdkDragAction>, or a list of its
symbols, or one of them.
the supported actions
Passed: a list or vector, each a class, or a GType number, or #f.
all supported GTypes that can be dropped
Not passed: guile-gi gives the length of types.
number of types
Connect a handler with (connect object tab-overview:create-tab
handler). It is called as (handler self) ⇒ %return.
Emitted when a tab needs to be created.
This can happen after the new tab button has been pressed, see
TabOverview:enable-new-tab.
The signal handler is expected to create a new page in the corresponding
TabView and return it.
Passed: a <AdwTabOverview>.
Returned: a <AdwTabPage>.
the newly created page
Connect a handler with (connect object
tab-overview:extra-drag-drop handler). It is called as (handler
self page value) ⇒ %return.
Emitted when content is dropped onto a tab.
The content must be of one of the types set up via
TabOverview.setup_extra_drop_target.
See drop-target:drop.
Passed: a <AdwTabOverview>.
Passed: a <AdwTabPage>.
the page matching the tab the content was dropped onto
Passed: a <GValue>.
the <GValue> being dropped
Returned: a boolean.
whether the drop was accepted
Connect a handler with (connect object
tab-overview:extra-drag-value handler). It is called as (handler
self page value) ⇒ %return.
Emitted when the dropped content is preloaded.
In order for data to be preloaded, TabOverview:extra-drag-preload
must be set to TRUE.
The content must be of one of the types set up via
TabOverview.setup_extra_drop_target.
See drop-target:value.
Passed: a <AdwTabOverview>.
Passed: a <AdwTabPage>.
the page matching the tab the content was dropped onto
Passed: a <GValue>, or #f.
the <GValue> being dropped
Returned: a <GdkDragAction>, or a list of
its symbols, or one of them.
the preferred action for the drop