Gio.ActionMap.prototype.add_action
function add_action(action: Gio.Action): void {
// Gjs wrapper for g_action_map_add_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
- action