Class: Gtk::RadioMenuItem
- Inherits:
-
Object
- Object
- Gtk::RadioMenuItem
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#group ⇒ GLib::SList
Returns the group to which the radio menu item belongs, as a #GList of Gtk::RadioMenuItem.
-
#group=(group) ⇒ Gtk::RadioMenuItem
The radio menu item whose group this widget belongs to.
-
#join_group(group_source) ⇒ nil
Joins a Gtk::RadioMenuItem object to the group of another #GtkRadioMenuItem object.
-
#new(group) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem.
-
#new_from_widget(group) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem adding it to the same group as group.
-
#new_with_label(group, label) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem whose child is a simple #GtkLabel.
-
#new_with_label_from_widget(group, label) ⇒ Gtk::Widget
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel.
-
#new_with_mnemonic(group, label) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem containing a label.
-
#new_with_mnemonic_from_widget(group, label) ⇒ Gtk::Widget
Creates a new GtkRadioMenuItem containing a label.
Instance Method Details
#group ⇒ GLib::SList
Returns the group to which the radio menu item belongs, as a #GList of Gtk::RadioMenuItem. The list belongs to GTK+ and should not be freed.
#group=(group) ⇒ Gtk::RadioMenuItem
The radio menu item whose group this widget belongs to.
#join_group(group_source) ⇒ nil
Joins a Gtk::RadioMenuItem object to the group of another #GtkRadioMenuItem object.
This function should be used by language bindings to avoid the memory manangement of the opaque #GSList of gtk_radio_menu_item_get_group() and gtk_radio_menu_item_set_group().
A common way to set up a group of Gtk::RadioMenuItem instances is:
|[
GtkRadioMenuItem *last_item = NULL;
while ( ...more items to add... )
{
GtkRadioMenuItem *radio_item;
radio_item = gtk_radio_menu_item_new (...);
gtk_radio_menu_item_join_group (radio_item, last_item);
last_item = radio_item;
}
]|
#new(group) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem.
#new_from_widget(group) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem adding it to the same group as group.
#new_with_label(group, label) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem whose child is a simple #GtkLabel.
#new_with_label_from_widget(group, label) ⇒ Gtk::Widget
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel. The new Gtk::RadioMenuItem is added to the same group as group.
#new_with_mnemonic(group, label) ⇒ Gtk::Widget
Creates a new Gtk::RadioMenuItem containing a label. The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the menu item.
#new_with_mnemonic_from_widget(group, label) ⇒ Gtk::Widget
Creates a new GtkRadioMenuItem containing a label. The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the menu item.
The new Gtk::RadioMenuItem is added to the same group as group.