Method

GtkButtonset_image

Declaration [src]

void
gtk_button_set_image (
  GtkButton* button,
  GtkWidget* image
)

Description [src]

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_show() on image yourself.

Available since:2.6
Sets propertyGtk.Button:image

Parameters

image GtkWidget
 

A widget to set as the image for the button, or NULL to unset.

 The argument can be NULL.
 The data is owned by the caller of the function.