[glib/new-gsettings] Save the type of the setting in the keyfile



commit 7d069d36f4229a41c425ab4f1eb295cbbec9c4e8
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Apr 14 20:14:19 2010 -0400

    Save the type of the setting in the keyfile
    
    Without the type, there's no way to decide if a value is an int32 or
    int16, for example.

 gio/gmemorysettingsbackend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gmemorysettingsbackend.c b/gio/gmemorysettingsbackend.c
index 34a9b14..26a7a47 100644
--- a/gio/gmemorysettingsbackend.c
+++ b/gio/gmemorysettingsbackend.c
@@ -58,7 +58,7 @@ g_memory_settings_backend_write_one (const gchar            *key,
   path = g_strndup (key, slash - key + 1);
 
   g_key_file_set_string (memory->priv->keyfile,
-                         path, base_key, g_variant_print (value, FALSE));
+                         path, base_key, g_variant_print (value, TRUE));
 
   g_free (path);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]