Gtk.RadioMenuItem.new_from_widget

function new_from_widget(group:Gtk.RadioMenuItem):Gtk.Widget {
    // Gjs wrapper for gtk_radio_menu_item_new_from_widget()
}

Creates a new Gtk.RadioMenuItem adding it to the same group as group.

Since 2.4

group

An existing Gtk.RadioMenuItem

Returns

The new Gtk.RadioMenuItem