Gtk.RadioButton.prototype.join_group
function join_group(group_source:Gtk.RadioButton):void {
// Gjs wrapper for gtk_radio_button_join_group()
}Joins a Gtk.RadioButton object to the group of another Gtk.RadioButton object
Use this in language bindings instead of the Gtk.RadioButton.prototype.get_group and Gtk.set_group methods
A common way to set up a group of radio buttons is the following: |[ GtkRadioButton *radio_button; GtkRadioButton *last_button;
while (/* more buttons to add */) { radio_button = gtk_radio_button_new (...);
gtk_radio_button_join_group (radio_button, last_button); last_button = radio_button; } ]|
Since 3.0
- group_source
a radio button object whos group we are joining, or null to remove the radio button from its group