package Implements_Gtk_Actionable is new Glib.Types.Implements (Gtk.Actionable.Gtk_Actionable, Gtk_Radio_Menu_Item_Record, Gtk_Radio_Menu_Item);
package Implements_Gtk_Activatable is new Glib.Types.Implements (Gtk.Activatable.Gtk_Activatable, Gtk_Radio_Menu_Item_Record, Gtk_Radio_Menu_Item);
package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Radio_Menu_Item_Record, Gtk_Radio_Menu_Item);
type Gtk_Radio_Menu_Item_Record is new Gtk_Check_Menu_Item_Record with null record;
type Gtk_Radio_Menu_Item is access all Gtk_Radio_Menu_Item_Record'Class;
type Cb_Gtk_Radio_Menu_Item_Void is not null access procedure (Self : access Gtk_Radio_Menu_Item_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
Group_Property : constant Glib.Properties.Property_Object;
Signal_Group_Changed : constant Glib.Signal_Name := "group-changed";
procedure Gtk_New
| ( | Radio_Menu_Item | : out Gtk_Radio_Menu_Item; |
| Group | : Gtk.Widget.Widget_SList.GSlist; | |
| Label | : UTF8_String := ""); |
procedure Initialize
| ( | Radio_Menu_Item | : not null access Gtk_Radio_Menu_Item_Record'Class; |
| Group | : Gtk.Widget.Widget_SList.GSlist; | |
| Label | : UTF8_String := ""); |
function Gtk_Radio_Menu_Item_New_With_Label
| ( | Group | : Gtk.Widget.Widget_SList.GSlist; |
| Label | : UTF8_String := "") return Gtk_Radio_Menu_Item; |
procedure Gtk_New_With_Mnemonic
| ( | Radio_Menu_Item | : out Gtk_Radio_Menu_Item; |
| Group | : Gtk.Widget.Widget_SList.GSlist; | |
| Label | : UTF8_String); |
procedure Initialize_With_Mnemonic
| ( | Radio_Menu_Item | : not null access Gtk_Radio_Menu_Item_Record'Class; |
| Group | : Gtk.Widget.Widget_SList.GSlist; | |
| Label | : UTF8_String); |
function Gtk_Radio_Menu_Item_New_With_Mnemonic
| ( | Group | : Gtk.Widget.Widget_SList.GSlist; |
| Label | : UTF8_String) return Gtk_Radio_Menu_Item; |
function Get_Type return Glib.GType;
function Get_Group
| ( | Radio_Menu_Item | : not null access Gtk_Radio_Menu_Item_Record) return Gtk.Widget.Widget_SList.GSlist; |
procedure Set_Group
| ( | Radio_Menu_Item | : not null access Gtk_Radio_Menu_Item_Record; |
| Group | : Gtk.Widget.Widget_SList.GSlist); |
function Selected_Button
| ( | In_Group | : Widget_SList.GSlist) return Natural; |
function Get_Action_Name
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record) return UTF8_String; |
procedure Set_Action_Name
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Action_Name | : UTF8_String); |
function Get_Action_Target_Value
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record) return Glib.Variant.Gvariant; |
procedure Set_Action_Target_Value
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Target_Value | : Glib.Variant.Gvariant); |
procedure Set_Detailed_Action_Name
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Detailed_Action_Name | : UTF8_String); |
procedure Do_Set_Related_Action
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Action | : not null access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Related_Action
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record) return Gtk.Action.Gtk_Action; |
procedure Set_Related_Action
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Action | : not null access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Use_Action_Appearance
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record) return Boolean; |
procedure Set_Use_Action_Appearance
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Use_Appearance | : Boolean); |
procedure Sync_Action_Properties
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Action | : access Gtk.Action.Gtk_Action_Record'Class); |
procedure On_Group_Changed
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Call | : Cb_Gtk_Radio_Menu_Item_Void; | |
| After | : Boolean := False); |
procedure On_Group_Changed
| ( | Self | : not null access Gtk_Radio_Menu_Item_Record; |
| Call | : Cb_GObject_Void; | |
| Slot | : not null access Glib.Object.GObject_Record'Class; | |
| After | : Boolean := False); |
function "+"
| ( | Widget | : access Gtk_Radio_Menu_Item_Record'Class) return Gtk.Actionable.Gtk_Actionable renames Implements_Gtk_Actionable.To_Interface; |
function "-"
| ( | Interf | : Gtk.Actionable.Gtk_Actionable) return Gtk_Radio_Menu_Item renames Implements_Gtk_Actionable.To_Object; |
function "+"
| ( | Widget | : access Gtk_Radio_Menu_Item_Record'Class) return Gtk.Activatable.Gtk_Activatable renames Implements_Gtk_Activatable.To_Interface; |
function "-"
| ( | Interf | : Gtk.Activatable.Gtk_Activatable) return Gtk_Radio_Menu_Item renames Implements_Gtk_Activatable.To_Object; |
function "+"
| ( | Widget | : access Gtk_Radio_Menu_Item_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
| ( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Radio_Menu_Item renames Implements_Gtk_Buildable.To_Object; |
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 Gtk.Radio_Menu_Item.Gtk_Radio_Menu_Item 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); }