change_state


Description:

[ Version ( since = "2.30" ) ]
public abstract void change_state (Variant value)

Request for the state of this to be changed to value.

The action must be stateful and value must be of the correct type. See [method@Gio.Action.get_state_type].

This call merely requests a change. The action may refuse to change its state or may change its state to something other than value . See [method@Gio.Action.get_state_hint].

If the value [type@GLib.Variant] is floating, it is consumed.

Parameters:

this

a [type@Gio.Action]

value

the new state