Gtk.StatusIcon.prototype.get_pixbuf

function get_pixbuf():GdkPixbuf.Pixbuf {
    // Gjs wrapper for gtk_status_icon_get_pixbuf()
}

Gets the GdkPixbuf.Pixbuf being displayed by the Gtk.StatusIcon. The storage type of the status icon must be Gtk.ImageType.empty or Gtk.ImageType.pixbuf (see Gtk.get_storage_type). The caller of this function does not own a reference to the returned pixbuf.

Since 2.10

Returns

the displayed pixbuf, or null if the image is empty.