GtkClutter.Texture.prototype.set_from_icon_name

function set_from_icon_name(widget: Gtk.Widget, icon_name: String, icon_size: Gtk.IconSize): Boolean {
    // Gjs wrapper for gtk_clutter_texture_set_from_icon_name()
}
  

Sets the contents of texture using the icon_name from the current icon theme.

Since 1.0

widget

a Gtk.Widget or null

icon_name

the name of the icon

icon_size

the icon size or -1

Returns

true on success, false on failure