RadioMenuItem.joinGroup

Joins a #GtkRadioMenuItem object to the group of another #GtkRadioMenuItem object.

This function should be used by language bindings to avoid the memory manangement of the opaque #GSList of gtk.radio_menu_item.RadioMenuItem.getGroup and gtk.radio_menu_item.RadioMenuItem.setGroup.

A common way to set up a group of #GtkRadioMenuItem 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;
  }
class RadioMenuItem
void
joinGroup

Parameters

groupSource gtk.radio_menu_item.RadioMenuItem

a #GtkRadioMenuItem whose group we are joining, or null to remove the radio_menu_item from its current group