Gtk.Notebook.prototype.append_page

function append_page(child:Gtk.Widget, tab_label:Gtk.Widget):Number {
    // Gjs wrapper for gtk_notebook_append_page()
}

Appends a page to notebook.

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'

Returns

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