Gtk.StatusIcon.prototype.get_stock

function get_stock():String {
    // Gjs wrapper for gtk_status_icon_get_stock()
}

Gets the id of the stock icon being displayed by the Gtk.StatusIcon. The storage type of the status icon must be Gtk.ImageType.empty or Gtk.ImageType.stock (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

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