closePage

fun closePage(page: TabPage)

Requests to close @page.

Calling this function will result in the signal@TabView::close-page signal being emitted for @page. Closing the page can then be confirmed or denied via method@TabView.close_page_finish.

If the page is waiting for a method@TabView.close_page_finish call, this function will do nothing.

The default handler for signal@TabView::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 property@TabPage: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

a page of @self