ImageMenuItem.setImage

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

Sets the image of image_menu_item to the given widget. Note that it depends on the show-menu-images setting whether the image will be displayed or not.

Parameters

imagea widget to set as the image for the menu item.