Gtk.StatusIcon.prototype.get_gicon
function get_gicon():Gio.Icon {
// Gjs wrapper for gtk_status_icon_get_gicon()
}Retrieves the Gio.Icon being displayed by the Gtk.StatusIcon. The storage type of the status icon must be Gtk.ImageType.empty or Gtk.ImageType.gicon (see Gtk.get_storage_type). The caller of this function does not own a reference to the returned Gio.Icon.
If this function fails, @icon is left unchanged;
Since 2.14
- Returns
the displayed icon, or null if the image is empty