ActionMapT

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.

Members

Functions

addAction
void addAction(ActionIF action)

Adds an action to the action_map. 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. Since 2.32

addActionEntries
void addActionEntries(GActionEntry[] entries, void* userData)

A convenience function for creating multiple GSimpleAction instances and adding them to a GActionMap. Each action is constructed as per one GActionEntry. Since 2.32

getActionMapTStruct
GActionMap* getActionMapTStruct()

Get the main Gtk struct

lookupAction
ActionIF lookupAction(string actionName)

Looks up the action with the name action_name in action_map. If no such action exists, returns NULL. Since 2.32

removeAction
void removeAction(string actionName)

Removes the named action from the action map. If no action of this name is in the map then nothing happens. Since 2.32

Variables

gActionMap
GActionMap* gActionMap;

the main Gtk struct

Meta