mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gkeyfilesettingsbackend: Add a code comment to clarify things
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
799b6678be
commit
9d89ed0c54
@ -225,6 +225,10 @@ get_from_keyfile (GKeyfileSettingsBackend *kfsb,
|
||||
if (str)
|
||||
{
|
||||
return_value = g_variant_parse (type, str, NULL, NULL, NULL);
|
||||
|
||||
/* As a special case, support values of type %G_VARIANT_TYPE_STRING
|
||||
* not being quoted, since users keep forgetting to do it and then
|
||||
* getting confused. */
|
||||
if (return_value == NULL &&
|
||||
g_variant_type_equal (type, G_VARIANT_TYPE_STRING) &&
|
||||
str[0] != '\"')
|
||||
|
Loading…
Reference in New Issue
Block a user