setValue

open fun setValue(key: String, value: <Error class: unknown class>): Boolean

Sets @key in @settings to @value.

It is a programmer error to give a @key that isn't contained in the schema for @settings or for @value to have the incorrect type, per the schema.

If @value is floating then this function consumes the reference.

Return

true if setting the key succeeded, false if the key was not writable

Since

2.26

Parameters

key

the name of the key to set

value

a #GVariant of the correct type