Class

GtkToggleAction

[]

Description [src]

class Gtk.ToggleAction : Gtk.Action
  implements Gtk.Buildable {
  /* No available fields */
}

A GtkToggleAction corresponds roughly to a GtkCheckMenuItem. It has an “active” state specifying whether the action has been checked or not.

[]

Hierarchy

hierarchy this GtkToggleAction implements_0 GtkBuildable this--implements_0 ancestor_0 GtkAction ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Descendants

[]

Implements

[]

Constructors

gtk_toggle_action_new

Creates a new GtkToggleAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().

deprecated: 3.10 since: 2.4

[]

Instance methods

gtk_toggle_action_get_active

Returns the checked state of the toggle action.

deprecated: 3.10 since: 2.4

gtk_toggle_action_get_draw_as_radio

Returns whether the action should have proxies like a radio action.

deprecated: 3.10 since: 2.4

gtk_toggle_action_set_active

Sets the checked state on the toggle action.

deprecated: 3.10 since: 2.4

gtk_toggle_action_set_draw_as_radio

Sets whether the action should have proxies like a radio action.

deprecated: 3.10 since: 2.4

gtk_toggle_action_toggled

Emits the “toggled” signal on the toggle action.

deprecated: 3.10 since: 2.4

Methods inherited from GtkAction (41)
Methods inherited from GObject (43)
Methods inherited from GtkBuildable (10)
[]

Properties

Gtk.ToggleAction:active

Whether the toggle action should be active.

deprecated: 3.10 since: 2.10

Gtk.ToggleAction:draw-as-radio

Whether the proxies for this action look like radio action proxies.

deprecated: 3.10 

Properties inherited from GtkAction (16)
[]

Signals

Gtk.ToggleAction::toggled

Should be connected if you wish to perform an action whenever the GtkToggleAction state is changed.

deprecated: 3.10 

Signals inherited from GtkAction (1)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Gtk.ToggleActionClass.toggled

Emits the “toggled” signal on the toggle action.

deprecated: 3.10 since: 2.4