Gtk.MenuToolButton.new_from_stock
function new_from_stock(stock_id:String):Gtk.ToolItem { // Gjs wrapper for gtk_menu_tool_button_new_from_stock() }
Creates a new Gtk.MenuToolButton. The new Gtk.MenuToolButton will contain an icon and label from the stock item indicated by stock_id.
Since 2.6
- stock_id
the name of a stock item
- Returns
the new Gtk.MenuToolButton