do_set_related_action
Description:
This is a utility function for Activatable implementors.
When implementing Activatable you must call this when handling changes of the
related_action, and you must also use this to break references in
Object->dispose
.
This function adds a reference to the currently set related action for you, it also makes sure the
Activatable->update
method is called when the related
Action properties change and registers to the action’s proxy list.
Note:
Be careful to call this before setting the local copy of the Action property, since this function uses get_related_action to retrieve the previous action.
Parameters:
this | |
action |
the Action to set |