GtkToggleAction
An action which can have two states: on or off.
Object Hierarchy
Direct Subclasses
Description
A GtkToggleAction corresponds roughly to a GtkCheckMenuItem. It has an "active" state specifying whether the action has been checked or not.
Constructors
GtkToggleAction (string name, string label, string tooltip, string stock_id);-- Creates a new toggle action object.
Methods
get_active() Â Returns the checked state. get_draw_as_radio() Â Whether the action should have proxies like a radio action. set_active() Â Sets the checked state on the toggle action. set_draw_as_radio() Â Sets whether the action should have proxies like a radio action. toggled() Â Emits the "toggled" signal.
Signals
"toggled" Â The state has been toggled.