Package: gtk

Function gtk:assistant-current-page

Lambda List

gtk:assistant-current-page (assistant)

Syntax

(gtk:assistant-current-page assistant) => index
(setf (gtk:assistant-current-page assistant) index)

Arguments

assistant -- a gtk:assistant widget
index -- an integer with the index of the page to switch to, starting from 0, if negative, the last page will be used, if greater than the number of pages in the assistant, nothing will be done

Details

The gtk:assistant-current-page function returns the page number of the current page in the assistant. The (setf gtk:assistant-current-page) function switches the page in the assistant to index. Note that this will only be necessary in custom buttons, as the assistant flow can be set with the gtk:assistant-set-forward-page-func function.

Warning

The gtk:assistant implementation is deprecated since 4.10. This widget will be removed in GTK 5.
 

See also

2024-5-2