Class

GioSimpleAction

Description [src]

final class Gio.SimpleAction : GObject.Object {
  /* No available fields */
}

A GSimpleAction is the obvious simple implementation of the GAction interface. This is the easiest way to create an action for purposes of adding it to a GSimpleActionGroup.

See also GtkAction.

Hierarchy

hierarchy this GSimpleAction implements_0 GAction this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Constructors

g_simple_action_new

Creates a new action.

Available since: 2.28

g_simple_action_new_stateful

Creates a new stateful action.

Available since: 2.28

Instance methods

g_simple_action_set_enabled

Sets the action as enabled or not.

Available since: 2.28

g_simple_action_set_state

Sets the state of the action.

Available since: 2.30

g_simple_action_set_state_hint

Sets the state hint for the action.

Available since: 2.44

Methods inherited from GObject (43)
Methods inherited from GAction (8)
g_action_activate

Activates the action.

Available since: 2.28

g_action_change_state

Request for the state of action to be changed to value.

Available since: 2.30

g_action_get_enabled

Checks if action is currently enabled.

Available since: 2.28

g_action_get_name

Queries the name of action.

Available since: 2.28

g_action_get_parameter_type

Queries the type of the parameter that must be given when activating action.

Available since: 2.28

g_action_get_state

Queries the current state of action.

Available since: 2.28

g_action_get_state_hint

Requests a hint about the valid range of values for the state of action.

Available since: 2.28

g_action_get_state_type

Queries the type of the state of action.

Available since: 2.28

Properties

Gio.SimpleAction:enabled

If action is currently enabled.

Available since: 2.28

Gio.SimpleAction:name

The name of the action. This is mostly meaningful for identifying the action once it has been added to a GSimpleActionGroup.

Available since: 2.28

Gio.SimpleAction:parameter-type

The type of the parameter that must be given when activating the action.

Available since: 2.28

Gio.SimpleAction:state

The state of the action, or NULL if the action is stateless.

Available since: 2.28

Gio.SimpleAction:state-type

The GVariantType of the state that the action has, or NULL if the action is stateless.

Available since: 2.28

Properties inherited from GAction (5)
Gio.Action:enabled

If action is currently enabled.

Available since: 2.28

Gio.Action:name

The name of the action. This is mostly meaningful for identifying the action once it has been added to a GActionGroup. It is immutable.

Available since: 2.28

Gio.Action:parameter-type

The type of the parameter that must be given when activating the action. This is immutable, and may be NULL if no parameter is needed when activating the action.

Available since: 2.28

Gio.Action:state

The state of the action, or NULL if the action is stateless.

Available since: 2.28

Gio.Action:state-type

The GVariantType of the state that the action has, or NULL if the action is stateless. This is immutable.

Available since: 2.28

Signals

Gio.SimpleAction::activate

Indicates that the action was just activated.

Available since: 2.28

Gio.SimpleAction::change-state

Indicates that the action just received a request to change its state.

Available since: 2.30

Signals inherited from GObject (1)