Button.setImage

void setImage(gtk.widget.Widget image = null)

Set the image of button to the given widget. The image will be displayed if the label text is null or if #GtkButton:always-show-image is true. You don’t have to call [gtk.widget.Widget.show] on image yourself.

Parameters

imagea widget to set as the image for the button, or null to unset