[ Version ( since = "3.18" ) ]
public void join_group (RadioMenuItem? group_source)
Joins a RadioMenuItem object to the group of another RadioMenuItem object.
This function should be used by language bindings to avoid the memory manangement of the opaque SList of get_group and set_group.
A common way to set up a group of RadioMenuItem instances is:
GtkRadioMenuItem *last_item = NULL;
while ( ...more items to add... )
{
GtkRadioMenuItem *radio_item;
radio_item = gtk_radio_menu_item_new (...);
gtk_radio_menu_item_join_group (radio_item, last_item);
last_item = radio_item;
}
this | |
group_source |
a RadioMenuItem whose group we are joining, or null to remove the this from its current group |