Gtk.ToolButton.new
function new(icon_widget:Gtk.Widget, label:String):Gtk.ToolItem {
// Gjs wrapper for gtk_tool_button_new()
}Creates a new %GtkToolButton using icon_widget as contents and label as label.
Since 2.4
- icon_widget
a widget that will be used as the button contents, or null
- label
a string that will be used as label, or null
- Returns
A new Gtk.ToolButton