1.128 <GtkNamedAction>

Class: <GtkNamedAction>

It derives from <GtkShortcutAction>.

Activates a named action.

See widget-class:install-action and widget:insert-action-group for ways to associate named actions with widgets.

Properties

Property: named-action:action-name self

The name of the action to activate.

Its value is a string, or #f.

It can only be set when the object is made, with #:action-name.

Procedures

Method: named-action:get-action-name self ⇒ %return
Method: get-action-name self ⇒ %return

Returns the name of the action that will be activated.

self

Passed: a <GtkNamedAction>.

a named action

%return

Returned: a string.

the name of the action to activate

Procedure: named-action:new name ⇒ %return

Creates an action that when activated, activates the named action on the widget.

It also passes the given arguments to it.

See widget:insert-action-group for how to add actions to widgets.

name

Passed: a string.

the detailed name of the action

%return

Returned: a <GtkNamedAction>.

a new <GtkShortcutAction>