Line numbers in GKeyFile
Submitted by David Zeuthen
Link to original bug (#631324)
Description
It would be nice to get line numbers out of GKeyFile - for example, this is useful if a key-file is syntactically valid but is missing e.g. one or more required groups or keys. Maybe something like
gint* g_key_file_get_group_line_numbers(GKeyFile *key_file, gint *out_num_line_numbers)
that matches g_key_file_get_groups() would be useful. Maybe something simpler.
<halfline>
davidz: might make sense to match the format of > g_key_file_get_comment<halfline>
for consistency g_key_file_get_line_number (GKeyFile *key_file, const gchar *group_name, const gchar *key ...