Gtk.RadioToolButton.new_with_stock_from_widget
function new_with_stock_from_widget(group:Gtk.RadioToolButton, stock_id:String):Gtk.ToolItem { // Gjs wrapper for gtk_radio_tool_button_new_with_stock_from_widget() }
Creates a new Gtk.RadioToolButton adding it to the same group as group. The new Gtk.RadioToolButton will contain an icon and label from the stock item indicated by stock_id.
Since 2.4
- group
An existing Gtk.RadioToolButton.
- stock_id
the name of a stock item
- Returns
A new Gtk.RadioToolButton