| GTK+ 3 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <gtk/gtk.h> struct GtkRadioMenuItem; GtkWidget * gtk_radio_menu_item_new (GSList *group); GtkWidget * gtk_radio_menu_item_new_with_label (GSList *group,const gchar *label); GtkWidget * gtk_radio_menu_item_new_with_mnemonic (GSList *group,const gchar *label); GtkWidget * gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group); GtkWidget * gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,const gchar *label); GtkWidget * gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,const gchar *label); void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,GSList *group); GSList * gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item);
GtkWidget * gtk_radio_menu_item_new_with_label (GSList *group,const gchar *label);
Creates a new GtkRadioMenuItem whose child is a simple GtkLabel.
|
. [element-type GtkRadioMenuItem][transfer full] |
|
the text for the label |
Returns : |
A new GtkRadioMenuItem. [transfer none] |
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 the radio menu item is inside |
|
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.
|
An existing GtkRadioMenuItem |
Returns : |
The new GtkRadioMenuItem. [transfer none] |
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.
|
an existing GtkRadioMenuItem |
|
the text for the label |
Returns : |
The new GtkRadioMenuItem. [transfer none] |
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.
|
An existing GtkRadioMenuItem |
|
the text of the button, with an underscore in front of the mnemonic character |
Returns : |
The new GtkRadioMenuItem. [transfer none] |
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.
|
a GtkRadioMenuItem |
Returns : |
the group
of radio_menu_item. [element-type GtkRadioMenuItem][transfer none]
|