KeyFile
The GKeyFile struct contains only private data and should not be accessed directly.
Skipped during bindings generation
parameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
length
: length: Out parameter is not supportedparameter
full_path
: full_path: Out parameter is not supportedparameter
full_path
: full_path: Out parameter is not supportedparameter
list
: Array parameter of type gboolean is not supportedparameter
list
: Array parameter of type gdouble is not supportedparameter
list
: Array parameter of type gint is not supportedparameter
length
: length: Out parameter is not supported
Constructors
Functions
Returns the value associated with @key under @group_name as a boolean.
Retrieves a comment above @key from @group_name. If @key is null then @comment will be read from above
Returns the value associated with @key under @group_name as an integer.
Returns the actual locale which the result of g_key_file_get_locale_string() or g_key_file_get_locale_string_list() came from.
Returns the value associated with @key under @group_name translated in the given @locale if available. If @locale is null then the current locale is assumed.
Returns the name of the start group of the file.
Loads a key file from the data in @bytes into an empty #GKeyFile structure. If the object cannot be created then %error is set to a #GKeyFileError.
Loads a key file from memory into an empty #GKeyFile structure. If the object cannot be created then %error is set to a #GKeyFileError.
Loads a key file into an empty #GKeyFile structure.
Removes a comment above @key from @group_name. If @key is null then @comment will be removed above @group_name. If both @key and @group_name are null, then @comment will be removed above the first group in the file.
Removes the specified group, @group_name, from the key file.
Writes the contents of @key_file to @filename using g_file_set_contents(). If you need stricter guarantees about durability of the written file than are provided by g_file_set_contents(), use g_file_set_contents_full() with the return value of g_key_file_to_data().
Associates a new boolean value with @key under @group_name. If @key cannot be found then it is created.
Places a comment above @key from @group_name.
Associates a new integer value with @key under @group_name. If @key cannot be found then it is created.
Sets the character which is used to separate values in lists. Typically ';' or ',' are used as separators. The default list separator is ';'.
Associates a string value for @key and @locale under @group_name. If the translation for @key cannot be found then it is created.
Associates a new string 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. Unlike g_key_file_set_value(), this function handles characters that need escaping, such as newlines.
Associates a list of string values for @key under @group_name. If @key cannot be found then it is created. If @group_name cannot be found then it is created.