Gtk.Notebook.prototype.insert_page

function insert_page(child:Gtk.Widget, tab_label:Gtk.Widget, position:Number):Number {
    // Gjs wrapper for gtk_notebook_insert_page()
}

Insert a page into notebook at the given position.

child

the Gtk.Widget to use as the contents of the page

tab_label

the Gtk.Widget to be used as the label for the page, or null to use the default label, 'page N'

position

the index (starting at 0) at which to insert the page, or -1 to append the page after all other pages

Returns

the index (starting from 0) of the inserted page in the notebook, or -1 if function fails