Description
A GtkCheckMenuItem is a menu item that maintains the state of a boolean
value in addition to a GtkMenuItem's usual role in activating application
code.
A check box indicating the state of the boolean value is displayed
at the left side of the GtkMenuItem. Activating the GtkMenuItem
toggles the value.
Details
struct GtkCheckMenuItem
The GtkCheckMenuItem struct contains the following fields.
(These fields should be considered read-only. They should never be set by
an application.)
gtk_check_menu_item_new_with_label ()
GtkWidget* gtk_check_menu_item_new_with_label
(const gchar *label); |
Creates a new GtkCheckMenuItem with a label.
gtk_check_menu_item_set_state
#define gtk_check_menu_item_set_state gtk_check_menu_item_set_active |
This macro is provided to preserve compatibility with older code.
New code should use gtk_check_menu_item_set_active() function instead.
gtk_check_menu_item_set_active ()
void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item,
gboolean is_active); |
Sets the active state of the menu item's check box.
gtk_check_menu_item_set_show_toggle ()
void gtk_check_menu_item_set_show_toggle
(GtkCheckMenuItem *menu_item,
gboolean always); |
Controls whether the check box is shown at all times.
Normally the check box is shown only when it is active or while the
menu item is selected.
gtk_check_menu_item_toggled ()
Emits the GtkCheckMenuItem::toggled signal.