add_states


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.8" ) ]
public void add_states (string? name, State state)

Warning: add_states is deprecated since 1.12.

Associates a State to the Script instance using the given name.

The Script instance will use state to resolve target states when connecting signal handlers.

The Script instance will take a reference on the State passed to this function.

Parameters:

this

a Script

name

a name for the state, or null to set the default State

state

a State




2022 vala-language.org