Gtk.Image.prototype.get_icon_name

function get_icon_name():void {
    // Gjs wrapper for gtk_image_get_icon_name()
}

Gets the icon name and size being displayed by the Gtk.Image. The storage type of the image must be Gtk.ImageType.empty or Gtk.ImageType.icon_name (see Gtk.get_storage_type). The returned string is owned by the Gtk.Image and should not be freed.

Since 2.6