Gtk.Button.new_from_stock
function new_from_stock(stock_id:String):Gtk.Widget {
// Gjs wrapper for gtk_button_new_from_stock()
}Creates a new Gtk.Button containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.
If stock_id is unknown, then it will be treated as a mnemonic label (as for Gtk.new_with_mnemonic).
- stock_id
the name of the stock item
- Returns
a new Gtk.Button