mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-09-20 09:16:15 +02: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)
|
if (str)
|
||||||
{
|
{
|
||||||
return_value = g_variant_parse (type, str, NULL, NULL, NULL);
|
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 &&
|
if (return_value == NULL &&
|
||||||
g_variant_type_equal (type, G_VARIANT_TYPE_STRING) &&
|
g_variant_type_equal (type, G_VARIANT_TYPE_STRING) &&
|
||||||
str[0] != '\"')
|
str[0] != '\"')
|
||||||
|
Loading…
Reference in New Issue
Block a user