ActionMapT

gio.action_map.ActionMap is an interface for action containers.

The gio.action_map.ActionMap interface is implemented by gio.action_group.ActionGroup implementations that operate by containing a number of named gio.action.Action instances, such as gio.simple_action_group.SimpleActionGroup.

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.

Members

Functions

addAction
void addAction(gio.action.Action action)

Adds an action to the action_map.

lookupAction
gio.action.Action lookupAction(string actionName)

Looks up the action with the name action_name in action_map.

removeAction
void removeAction(string actionName)

Removes the named action from the action map.