Gtk.Notebook.prototype.get_current_page

function get_current_page():Number {
    // Gjs wrapper for gtk_notebook_get_current_page()
}

Returns the page number of the current page.

Returns

the index (starting from 0) of the current page in the notebook. If the notebook has no pages, then -1 will be returned.