Settings.applyFromKeyFile

bool applyFromKeyFile(glib.key_file.KeyFile keyFile, string groupName)

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.

Parameters

keyFilea #GKeyFile
groupNameName of the group to read from key_file

Returns

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

Throws

[ErrorWrap]