Gtk.RadioAction.prototype.join_group

function join_group(group_source:Gtk.RadioAction):void {
    // Gjs wrapper for gtk_radio_action_join_group()
}

Joins a radio action object to the group of another radio action object.

Use this in language bindings instead of the Gtk.RadioAction.prototype.get_group and Gtk.set_group methods

A common way to set up a group of radio actions is the following: |[ GtkRadioAction *action; GtkRadioAction *last_action; while (/* more actions to add */) { action = gtk_radio_action_new (...); gtk_radio_action_join_group (action, last_action); last_action = action; } ]|

Since 3.0

group_source

a radio action object whos group we are joining, or null to remove the radio action from its group