Gtk.StatusIcon.prototype.get_icon_name

function get_icon_name():String {
    // Gjs wrapper for gtk_status_icon_get_icon_name()
}

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

Since 2.10

Returns

name of the displayed icon, or null if the image is empty.