Gtk.Button.prototype.set_image

function set_image(image:Gtk.Widget):void {
    // Gjs wrapper for gtk_button_set_image()
}

Set the image of button to the given widget. Note that it depends on the Gtk.gtk-button-images setting whether the image will be displayed or not, you don't have to call Gtk.show on image yourself.

Since 2.6

image

a widget to set as the image for the button