set_enum
Description:
Looks up the enumerated type nick for value and writes it to key, within this.
It is a programmer error to give a key that isn’t contained in the schema for this or is not
marked as an enumerated type, or for value not to be a valid value for the named type.
After performing the write, accessing key directly with [method@Gio.Settings.get_string] will return the ‘nick’ associated
with value.
Parameters:
| this |
the settings object |
| key |
the key to set the value for |
| value |
an enumerated value |
Returns:
|
true if the set succeeds, false otherwise |