Gio.SimpleAction.prototype.set_state
function set_state(value: GLib.Variant): void {
// Gjs wrapper for g_simple_action_set_state()
}
Sets the state of the action.
This directly updates the 'state' property to the given value.
This should only be called by the implementor of the action. Users of the action should not attempt to directly modify the 'state' property. Instead, they should call Gio.Action.prototype.change_state to request the change.
If the value GVariant is floating, it is consumed.
Since 2.30
- value
the new GLib.Variant for the state