[recipes] One forgotten place for the rename



commit 35c8fe30d1cd4953e046af4ef65cbd551f40672d
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 13 07:19:23 2017 -0500

    One forgotten place for the rename
    
    This was causing a crash since we assume the directory exists,
    here.

 src/gr-cooking-page.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-cooking-page.c b/src/gr-cooking-page.c
index bc46517..9cb9b9f 100644
--- a/src/gr-cooking-page.c
+++ b/src/gr-cooking-page.c
@@ -94,7 +94,7 @@ get_cooking_overlay_count (void)
 
         keyfile = g_key_file_new ();
 
-        path = g_build_filename (g_get_user_data_dir (), "recipes", "cooking", NULL);
+        path = g_build_filename (get_user_data_dir (), "cooking", NULL);
         if (!g_key_file_load_from_file (keyfile, path, G_KEY_FILE_NONE, &error)) {
                 if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
                         g_error ("Failed to load cooking overlay count: %s", error->message);
@@ -119,7 +119,7 @@ set_cooking_overlay_count (int count)
 
         keyfile = g_key_file_new ();
 
-        path = g_build_filename (g_get_user_data_dir (), "recipes", "cooking", NULL);
+        path = g_build_filename (get_user_data_dir (), "cooking", NULL);
 
         g_key_file_set_integer (keyfile, "Cooking", "OverlayShown", count);
 


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