GtkRadioMenuItem: GtkRadioMenuItem
Description
A choice from multiple check menu itemsMethods and Functions
gtkRadioMenuItemNew(group = NULL, show = TRUE)
gtkRadioMenuItemNewWithLabel(group = NULL, label, show = TRUE)
gtkRadioMenuItemNewWithMnemonic(group = NULL, label, show = TRUE)
gtkRadioMenuItemNewFromWidget(group = NULL, show = TRUE)
gtkRadioMenuItemNewWithLabelFromWidget(group = NULL, label, show = TRUE)
gtkRadioMenuItemNewWithMnemonicFromWidget(group = NULL, label, show = TRUE)
gtkRadioMenuItemSetGroup(object, group)
gtkRadioMenuItemGetGroup(object)
gtkRadioMenuItem(group = NULL, label, show = TRUE)
Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkItem
+----GtkMenuItem
+----GtkCheckMenuItem
+----GtkRadioMenuItemInterfaces
GtkRadioMenuItem implements
AtkImplementorIface and GtkBuildable.Detailed Description
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.
group <- NULL
for (i in 1:5) {
item <- gtkRadioMenuItem(group, "This is an example")
group <- item$getGroup()
if (i == 1)
item$setActive(TRUE)
}References
http://developer.gnome.org/doc/API/2.0/gtk/GtkRadioMenuItem.html