do_set_related_action


Description:

[ Version ( since = "2.16" ) ]
public void do_set_related_action (Action action)

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

a Activatable

action

the Action to set




2022 vala-language.org