Gtk.ImageMenuItem.prototype.set_image

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

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.

image

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