void hdy_tab_view_set_page_pinned ( HdyTabView* self, HdyTabPage* page, gboolean pinned )
Pins or unpins
Pinned pages are guaranteed to be placed before all non-pinned pages; at any
given moment the first
HdyTabView:n-pinned-pages pages in
guaranteed to be pinned.
When a page is pinned or unpinned, it’s automatically reordered: pinning a page moves it after other pinned pages; unpinning a page moves it before other non-pinned pages.
Pinned pages can still be reordered between each other.
HdyTabBar will display pinned pages in a compact form, never showing the
title or close button, and only showing a single icon, selected in the
- A spinner if
Pinned pages cannot be closed by default, see
for how to override that behavior.
A page of
The data is owned by the caller of the function.
pageshould be pinned.