Gtk.RadioMenuItem.new_with_label_from_widget

function new_with_label_from_widget(group:Gtk.RadioMenuItem, label:String):Gtk.Widget {
    // Gjs wrapper for gtk_radio_menu_item_new_with_label_from_widget()
}

Creates a new GtkRadioMenuItem whose child is a simple GtkLabel. The new Gtk.RadioMenuItem is added to the same group as group.

Since 2.4

group

an existing Gtk.RadioMenuItem

label

the text for the label

Returns

The new Gtk.RadioMenuItem