Package: gtk

Accessor gtk-radio-action-group

Lambda List

gtk-radio-action-group (object)

Syntax

(gtk-radio-action-group object) => group
(setf (gtk-radio-action-group object) group)

Arguments

object -- a gtk-radio-action object
group -- a list of gtk-radion-action objects representing a radio group

Details

Accessor of the group slot of the gtk-radio-action class.

The slot access function gtk-radio-action-group returns the list representing the radio group for this object. The slot access function (setf gtk-radio-action-group) sets the radio group.

Note that the returned list is only valid until the next change to the group. A common way to set up a group of radio group is the following:
GSList *group = NULL;
GtkRadioAction *action;

while (/* more actions to add */) { action = gtk_radio_action_new (...);

gtk_radio_action_set_group (action, group); group = gtk_radio_action_get_group (action); }

Warning

The function gtk-radio-action-group has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

2021-7-20