<GActionMap> is an interface for action
containers.
The <GActionMap> interface is implemented by
<GActionGroup> implementations that operate by
containing a number of named <GAction> instances,
such as <GSimpleActionGroup>.
One useful application of this interface is to map the names of actions from various action groups to unique, prefixed names (e.g. by prepending "app." or "win."). This is the motivation for the ‘Map’ part of the interface name.
Adds an action to the self.
If the action map already contains an action with the same name as action then the old action is dropped from the action map.
The action map takes its own reference on action.
Passed: a <GActionMap>.
an action map
Passed: a <GAction>.
Looks up the action with the name action-name in self.
If no such action exists, returns NULL.
Passed: a <GActionMap>.
an action map
Passed: a string.
the name of an action
Returned: a <GAction>, or #f.
Removes the named action from the action map.
If no action of this name is in the map then nothing happens.
Passed: a <GActionMap>.
an action map
Passed: a string.
the name of the action
Adds an action to the self.
If the action map already contains an action with the same name as action then the old action is dropped from the action map.
The action map takes its own reference on action.
To override it in a new class, give register-type #:vfuncs
`((add-action . ,procedure)). The procedure is called as
(procedure self action).
Passed: the class whose implementation to call: a class that implements
<GActionMap>, or its GType number.
Passed: a <GActionMap>.
an action map
Passed: a <GAction>.
Looks up the action with the name action-name in self.
If no such action exists, returns NULL.
To override it in a new class, give register-type #:vfuncs
`((lookup-action . ,procedure)). The procedure is called as
(procedure self action-name) ⇒ %return.
Passed: the class whose implementation to call: a class that implements
<GActionMap>, or its GType number.
Passed: a <GActionMap>.
an action map
Passed: a string.
the name of an action
Returned: a <GAction>, or #f.
Removes the named action from the action map.
If no action of this name is in the map then nothing happens.
To override it in a new class, give register-type #:vfuncs
`((remove-action . ,procedure)). The procedure is called as
(procedure self action-name).
Passed: the class whose implementation to call: a class that implements
<GActionMap>, or its GType number.
Passed: a <GActionMap>.
an action map
Passed: a string.
the name of the action