Gtk.StatusIcon.new_from_stock

function new_from_stock(stock_id:String):Gtk.StatusIcon {
    // Gjs wrapper for gtk_status_icon_new_from_stock()
}

Creates a status icon displaying a stock icon. Sample stock icon names are #GTK_STOCK_OPEN, #GTK_STOCK_QUIT. You can register your own stock icon names, see Gtk.IconFactory.prototype.add_default and Gtk.IconFactory.prototype.add.

Since 2.10

stock_id

a stock icon id

Returns

a new Gtk.StatusIcon