An action which can be toggled between two states
A <gtk-toggle-action> corresponds roughly to a
<gtk-check-menu-item>. It has an "active" state specifying whether the
action has been checked or not.
Derives from
<gtk-action>.This class defines the following slots:
draw-as-radio- Whether the proxies for this action look like radio action proxies
active- If the toggle action should be active in or not
mchars) (label mchars) (tooltip mchars) (stock_id mchars) ⇒ (ret <gtk-toggle-action>)Creates a new
<gtk-toggle-action>object. To add the action to a<gtk-action-group>and set the accelerator for the action, callgtk-action-group-add-action-with-accel.
- name
- A unique name for the action
- label
- The label displayed in menu items and on buttons
- tooltip
- A tooltip for the action
- stock-id
- The stock icon to display in widgets representing the action
- ret
- a new
<gtk-toggle-action>Since 2.4
<gtk-toggle-action>)Emits the "toggled" signal on the toggle action.
- action
- the action object
Since 2.4
<gtk-toggle-action>) (is_active bool)Sets the checked state on the toggle action.
- action
- the action object
- is-active
- whether the action should be checked or not
Since 2.4
<gtk-toggle-action>) ⇒ (ret bool)Returns the checked state of the toggle action.
- action
- the action object
- ret
- the checked state of the toggle action
Since 2.4