1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A choice from multiple check menu items
7 <!-- ##### SECTION Long_Description ##### -->
9 A radio menu item is a check menu item that belongs to a group. At each
10 instant exactly one of the radio menu items from a group is selected.
13 The group list does not need to be freed, as each #GtkRadioMenuItem will
14 remove itself and its list item when it is destroyed.
17 The correct way to create a group of radio menu items is approximatively
21 <title>How to create a group of radio menu items.</title>
27 for (i = 0; i < 5; i++)
29 item = gtk_radio_menu_item_new_with_label (group, "This is an example");
30 group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item));
32 gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE);
37 <!-- ##### SECTION See_Also ##### -->
41 <term>#GtkMenuItem</term>
42 <listitem><para>because a radio menu item is a menu item.</para></listitem>
45 <term>#GtkCheckMenuItem</term>
46 <listitem><para>to know how to handle the check.</para></listitem>
51 <!-- ##### SECTION Stability_Level ##### -->
54 <!-- ##### STRUCT GtkRadioMenuItem ##### -->
56 The structure contains only private data that must be accessed through
57 the interface functions.
61 <!-- ##### SIGNAL GtkRadioMenuItem::group-changed ##### -->
66 @radiomenuitem: the object which received the signal.
68 <!-- ##### ARG GtkRadioMenuItem:group ##### -->
73 <!-- ##### FUNCTION gtk_radio_menu_item_new ##### -->
75 Creates a new #GtkRadioMenuItem.
78 @group: the group to which the radio menu item is to be attached
79 @Returns: a new #GtkRadioMenuItem
82 <!-- ##### FUNCTION gtk_radio_menu_item_new_with_label ##### -->
90 <!-- ##### FUNCTION gtk_radio_menu_item_new_with_mnemonic ##### -->
100 <!-- ##### FUNCTION gtk_radio_menu_item_new_from_widget ##### -->
109 <!-- ##### FUNCTION gtk_radio_menu_item_new_with_label_from_widget ##### -->
119 <!-- ##### FUNCTION gtk_radio_menu_item_new_with_mnemonic_from_widget ##### -->
129 <!-- ##### MACRO gtk_radio_menu_item_group ##### -->
131 Deprecated compatibility macro. Use gtk_radio_menu_item_get_group() instead.
136 <!-- ##### FUNCTION gtk_radio_menu_item_set_group ##### -->
138 Sets the group of a radio menu item, or changes it.
141 @radio_menu_item: a #GtkRadioMenuItem.
142 @group: the new group.
145 <!-- ##### FUNCTION gtk_radio_menu_item_get_group ##### -->
147 Returns the group to which the radio menu item belongs, as a #GList of
148 #GtkRadioMenuItem. The list belongs to GTK+ and should not be freed.
151 @radio_menu_item: a #GtkRadioMenuItem.
152 @Returns: the group of @radio_menu_item.