Settings.applyFromKeyFile

Reads the contents of the given group_name from the given key_file and apply the value of each key/value to the corresponding property on the settings.

Value types have to match with the corresponding setting property type and the group keys have to match existing setting property names. If those conditions are not met, the function will return false.

Supported value types are strings (unquoted), booleans (0, 1, true, false) and unsigned integers.

class Settings
bool
applyFromKeyFile

Parameters

keyFile glib.key_file.KeyFile

a #GKeyFile

groupName string

Name of the group to read from key_file

Return Value

Type: bool

true if the settings were correctly applied or false on error.

Throws