GtkClutter.Texture.prototype.set_from_stock
function set_from_stock(widget: Gtk.Widget, stock_id: String, icon_size: Gtk.IconSize): Boolean { // Gjs wrapper for gtk_clutter_texture_set_from_stock() }
Sets the contents of texture using the stock icon stock_id, as rendered by widget.
- widget
- stock_id
the stock id of the icon
- icon_size
the size of the icon, or -1
- Returns
true on success, false on failure.