Settings.setValue

bool setValue(string key, glib.variant.Variant value)

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.

Parameters

keythe name of the key to set
valuea #GVariant of the correct type

Returns

true if setting the key succeeded,

false if the key was not writable