Gtk.ToolButton.prototype.set_icon_name

function set_icon_name(icon_name:String):void {
    // Gjs wrapper for gtk_tool_button_set_icon_name()
}

Sets the icon for the tool button from a named themed icon. See the docs for Gtk.IconTheme for more details. The "icon_name" property only has an effect if not overridden by non-null "label", "icon_widget" and "stock_id" properties.

Since 2.8

icon_name

the name of the themed icon