Top |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkItem ╰── GtkMenuItem ╰── GtkCheckMenuItem ╰── GtkRadioMenuItem
GtkRadioMenuItem implements AtkImplementorIface, GtkBuildable and GtkActivatable.
GtkWidget * gtk_radio_menu_item_new_with_label (GSList *group
,const gchar *label
);
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel.
GtkWidget * gtk_radio_menu_item_new_with_mnemonic (GSList *group
,const gchar *label
);
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.
group |
group the radio menu item is inside |
|
label |
the text of the button, with an underscore in front of the mnemonic character |
|
returns |
a new GtkRadioMenuItem |
GtkWidget *
gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group
);
Creates a new GtkRadioMenuItem adding it to the same group as group
.
Since: 2.4
GtkWidget * gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group
,const gchar *label
);
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel.
The new GtkRadioMenuItem is added to the same group as group
.
Since: 2.4
GtkWidget * gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group
,const gchar *label
);
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 GtkRadioMenuItem is added to the same group as group
.
group |
An existing GtkRadioMenuItem |
|
label |
the text of the button, with an underscore in front of the mnemonic character |
Since: 2.4
void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item
,GSList *group
);
GSList *
gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item
);
Returns the group to which the radio menu item belongs, as a GList of GtkRadioMenuItem. The list belongs to GTK+ and should not be freed.
“group”
property“group” GtkRadioMenuItem *
The radio menu item whose group this widget belongs to.
Owner: GtkRadioMenuItem
Flags: Write
Since: 2.8
“group-changed”
signalvoid user_function (GtkRadioMenuItem *radiomenuitem, gpointer user_data)
Flags: Run First