Sets our main struct and passes it to the parent class.
Creates a new empty #GKeyFile object. Use g_key_file_load_from_file(), g_key_file_load_from_data(), g_key_file_load_from_dirs() or g_key_file_load_from_data_dirs() to read an existing key file.
Clears all keys and groups from @key_file, and decreases the reference count by 1. If the reference count reaches zero, frees the key file and all its allocated memory.
Returns the value associated with @key under @group_name as a boolean.
Returns the values associated with @key under @group_name as booleans.
Retrieves a comment above @key from @group_name. If @key is %NULL then @comment will be read from above @group_name. If both @key and @group_name are %NULL, then @comment will be read from above the first group in the file.
Returns the value associated with @key under @group_name as a double. If @group_name is %NULL, the start_group is used.
Returns the values associated with @key under @group_name as doubles.
Returns all groups in the key file loaded with @key_file. The array of returned groups will be %NULL-terminated, so @length may optionally be %NULL.
Returns the value associated with @key under @group_name as a signed 64-bit integer. This is similar to g_key_file_get_integer() but can return 64-bit results without truncation.
Returns the value associated with @key under @group_name as an integer.
Returns the values associated with @key under @group_name as integers.
Get the main Gtk struct
Returns all keys for the group name @group_name. The array of returned keys will be %NULL-terminated, so @length may optionally be %NULL. In the event that the @group_name cannot be found, %NULL is returned and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
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 values 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.
Returns the string value associated with @key under @group_name. Unlike g_key_file_get_value(), this function handles escape sequences like \s.
Returns the values associated with @key under @group_name.
the main Gtk struct as a void*
Returns the value associated with @key under @group_name as an unsigned 64-bit integer. This is similar to g_key_file_get_integer() but can return large positive results without truncation.
Returns the raw value associated with @key under @group_name. Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.
Looks whether the key file has the group @group_name.
Looks whether the key file has the key @key in the group @group_name.
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.
This function looks for a key file named @file in the paths returned from g_get_user_data_dir() and g_get_system_data_dirs(), loads the file into @key_file and returns the file's full path in @full_path. If the file could not be loaded then an %error is set to either a #GFileError or #GKeyFileError.
This function looks for a key file named @file in the paths specified in @search_dirs, loads the file into @key_file and returns the file's full path in @full_path.
Loads a key file into an empty #GKeyFile structure.
Increases the reference count of @key_file.
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.
Removes @key in @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.
Associates a list of boolean values with @key under @group_name. If @key cannot be found then it is created. If @group_name is %NULL, the start_group is used.
Places a comment above @key from @group_name.
Associates a new double value with @key under @group_name. If @key cannot be found then it is created.
Associates a list of double values with @key under @group_name. If @key cannot be found then it is created.
Associates a new integer value with @key under @group_name. If @key cannot be found then it is created.
Associates a new integer value with @key under @group_name. If @key cannot be found then it is created.
Associates a list of integer values 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 list of string values 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.
Associates a new integer value with @key under @group_name. If @key cannot be found then it is created.
Associates a new value with @key under @group_name.
This function outputs @key_file as a string.
Decreases the reference count of @key_file by 1. If the reference count reaches zero, frees the key file and all its allocated memory.
The GKeyFile struct contains only private data and should not be accessed directly.