GtkRadioMenuItem
A choice from multiple check menu items.
A radio menu item is a check menu item that belongs to a group. At each
instant exactly one of the radio menu items from a group is selected.
The group list does not need to be freed, as each #GtkRadioMenuItem will
remove itself and its list item when it is destroyed.
The correct way to create a group of radio menu items is approximatively
this:
How to create a group of radio menu items.
GSList *group = NULL;
GtkWidget *item;
gint i;
for (i = 0; i < 5; i++)
{
item = gtk_radio_menu_item_new_with_label (group, "This is an example");
group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item));
if (i == 1)
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE);
}
#GtkMenuItem
because a radio menu item is a menu item.
#GtkCheckMenuItem
to know how to handle the check.
The structure contains only private data that must be accessed through
the interface functions.
@radiomenuitem: the object which received the signal.
Creates a new #GtkRadioMenuItem.
@group: the group to which the radio menu item is to be attached
@Returns: a new #GtkRadioMenuItem
Creates a new #GtkRadioMenuItem whose child is a simple #GtkLabel.
@group: the group to which the radio menu item is to be attached
@label: the text for the label
@Returns: a new #GtkRadioMenuItem
@group:
@label:
@Returns:
@group:
@Returns:
@group:
@label:
@Returns:
@group:
@label:
@Returns:
Deprecated compatibility macro. Use gtk_radio_menu_item_get_group() instead.
Sets the group of a radio menu item, or changes it.
@radio_menu_item: a #GtkRadioMenuItem.
@group: the new group.
Returns the group to which the radio menu item belongs, as a #GList of
#GtkRadioMenuItem. The list belongs to GTK+ and should not be freed.
@radio_menu_item: a #GtkRadioMenuItem.
@Returns: the group of @radio_menu_item.