GtkToggleAction

An action which can have two states: on or off.

Object Hierarchy

GObject
`-- GtkAction
       `-- GtkToggleAction

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.