KeyFile.setValue

void setValue(string groupName, string key, string value)

Associates a new value with key under group_name.

If key cannot be found then it is created. If group_name cannot be found then it is created. To set an UTF-8 string which may contain characters that need escaping (such as newlines or spaces), use [glib.key_file.KeyFile.setString].

Parameters

groupNamea group name
keya key
valuea string