Gtk.Button.new_with_label

function new_with_label(label:String):Gtk.Widget {
    // Gjs wrapper for gtk_button_new_with_label()
}

Creates a Gtk.Button widget with a Gtk.Label child containing the given text.

label

The text you want the Gtk.Label to hold.

Returns

The newly created Gtk.Button widget.