Gtk.Notebook.prototype.set_tab_label

function set_tab_label(child:Gtk.Widget, tab_label:Gtk.Widget):void {
    // Gjs wrapper for gtk_notebook_set_tab_label()
}

Changes the tab label for child. If null is specified for tab_label, then the page will have the label 'page N'.

child

the page

tab_label

the tab label widget to use, or null for default tab label