Adds an action to the
If the action map already contains an action with the same name
action then the old action is dropped from the action map.
The action map takes its own reference on
Available since: 2.32
The data is owned by the caller of the method.