Gtk.RadioToolButton.new_from_widget

function new_from_widget(group:Gtk.RadioToolButton):Gtk.ToolItem {
    // Gjs wrapper for gtk_radio_tool_button_new_from_widget()
}

Creates a new Gtk.RadioToolButton adding it to the same group as @gruup

Since 2.4

group

An existing Gtk.RadioToolButton, or null

Returns

The new Gtk.RadioToolButton