Method
AdapTabViewclose_page
Declaration [src]
void
adap_tab_view_close_page (
AdapTabView* self,
AdapTabPage* page
)
Description [src]
Requests to close page
.
Calling this function will result in the AdapTabView::close-page
signal
being emitted for page
. Closing the page can then be confirmed or
denied via adap_tab_view_close_page_finish()
.
If the page is waiting for a adap_tab_view_close_page_finish()
call, this
function will do nothing.
The default handler for AdapTabView::close-page
will immediately confirm
closing the page if it’s non-pinned, or reject it if it’s pinned. This
behavior can be changed by registering your own handler for that signal.
If page
was selected, another page will be selected instead:
If the AdapTabPage:parent
value is NULL
, the next page will be
selected when possible, or if the page was already last, the previous page
will be selected instead.
If it’s not NULL
, the previous page will be selected if it’s a descendant
(possibly indirect) of the parent. If both the previous page and the parent
are pinned, the parent will be selected instead.
Parameters
page
-
Type:
AdapTabPage
A page of
self
.The data is owned by the caller of the method.