Method

GtkRadioButtonjoin_group

since: 3.0

Declaration [src]

void
gtk_radio_button_join_group (
  GtkRadioButton* radio_button,
  GtkRadioButton* group_source
)

Description [src]

Joins a GtkRadioButton object to the group of another GtkRadioButton object

Use this in language bindings instead of the gtk_radio_button_get_group() and gtk_radio_button_set_group() methods

A common way to set up a group of radio buttons is the following:

  GtkRadioButton *radio_button;
  GtkRadioButton *last_button;

  while (some_condition)
    {
       radio_button = gtk_radio_button_new (NULL);

       gtk_radio_button_join_group (radio_button, last_button);
       last_button = radio_button;
    }

Available since: 3.0

Parameters

group_source

Type: GtkRadioButton

A radio button object whos group we are joining, or NULL to remove the radio button from its group.

The argument can be NULL.
The data is owned by the caller of the method.