[Xfce4-commits] <midori:master> Save speed dial configuration file after importing from JSON

Christian Dywan noreply at xfce.org
Sun Apr 3 23:36:01 CEST 2011


Updating branch refs/heads/master
         to b8eb9c50f773cac68adc7db514b89b0960df2f91 (commit)
       from c660aafe6418140d0ee6cdfc85f3b57c21b7a9ab (commit)

commit b8eb9c50f773cac68adc7db514b89b0960df2f91
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Mar 24 17:58:06 2011 +0100

    Save speed dial configuration file after importing from JSON

 midori/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 74571c6..b108e53 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -1489,7 +1489,6 @@ speeddial_new_from_file (const gchar* config,
 
     katze_assign (config_file, g_build_filename (config, "speeddial.json", NULL));
     g_file_get_contents (config_file, &json_content, NULL, NULL);
-    g_free (config_file);
     parts = g_strsplit (json_content ? json_content : "", ",", -1);
     while (parts && parts[i] != NULL)
     {
@@ -1594,7 +1593,11 @@ speeddial_new_from_file (const gchar* config,
     g_key_file_set_integer (key_file, "settings", "columns", columns);
     g_key_file_set_integer (key_file, "settings", "rows", rows);
 
+    katze_assign (config_file, g_build_filename (config, "speeddial", NULL));
+    sokoke_key_file_save_to_file (key_file, config_file, NULL);
+
     g_strfreev (parts);
+    g_free (config_file);
     g_free (json_content);
     return key_file;
 }



More information about the Xfce4-commits mailing list