Method

GtkRadioActionjoin_group

deprecated: 3.10 since: 3.0

Declaration [src]

void
gtk_radio_action_join_group (
  GtkRadioAction* action,
  GtkRadioAction* group_source
)

Description [src]

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

Use this in language bindings instead of the gtk_radio_action_get_group() and gtk_radio_action_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;
    }

Available since: 3.0

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

group_source

Type: GtkRadioAction

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

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