Settings.setValue

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.

class Settings
bool
setValue
(
string key
,)

Parameters

key string

the name of the key to set

value Variant

a #GVariant of the correct type

Return: %TRUE if setting the key succeeded, %FALSE if the key was not writable

Meta

Since

2.26