1
2@c %start of fragment
3
4@node GtkRadioMenuItem
5@chapter GtkRadioMenuItem
6A choice from multiple check menu items
7
8@section Overview
9A radio menu item is a check menu item that belongs to a group. At each instant
10exactly one of the radio menu items from a group is selected.
11
12The group list does not need to be freed, as each @code{<gtk-radio-menu-item>}
13will remove itself and its list item when it is destroyed.
14
15The correct way to create a group of radio menu items is approximatively this:
16
17@example
18
19GSList *group = NULL;
20GtkWidget *item;
21gint i;
22
23for (i = 0; i < 5; i++)
24@{
25  item = gtk_radio_menu_item_new_with_label (group, "This is an example");
26  group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item));
27  if (i == 1)
28    gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE);
29@}
30@end example
31
32@section Usage
33@include defuns-gtkradiomenuitem.xml.texi
34
35@c %end of fragment
36