Package: gio

Function gio:settings-flags

Lambda List

gio:settings-flags (settings key)

Syntax

(g:settings-flags settings) => value
(setf (g:settings-flags settings) value)

Arguments

settings -- a g:settings object
key -- a string for the key to get the value for
value -- an unsigned integer for the value

Details

Gets or sets the value that is stored in settings for key and converts it to the flags value that it represents. In order to use this function the type of the value must be an array of strings and it must be marked in the schema file as a flags type.

It is a programmer error to give a key that is not contained in the schema for settings or is not marked as a flags type.

If the value stored in the configuration database is not a valid value for the flags type then this function will return the default value.
 

See also

#2026-03-24