Gtk.ToolButton.prototype.set_label

function set_label(label:String):void {
    // Gjs wrapper for gtk_tool_button_set_label()
}

Sets label as the label used for the tool button. The "label" property only has an effect if not overridden by a non-null "label_widget" property. If both the "label_widget" and "label" properties are null, the label is determined by the "stock_id" property. If the "stock_id" property is also null, button will not have a label.

Since 2.4

label

a string that will be used as label, or null.