Gtk.ToolButton.new_from_stock
function new_from_stock(stock_id:String):Gtk.ToolItem {
// Gjs wrapper for gtk_tool_button_new_from_stock()
}Creates a new Gtk.ToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.
It is an error if stock_id is not a name of a stock item.
Since 2.4
- stock_id
the name of the stock item
- Returns
A new Gtk.ToolButton