[easytag] Resolve a FIXME when saving config files



commit d3d41072a3ff3802341d96145e5ea87e1508005a
Author: David King <amigadave amigadave com>
Date:   Thu Dec 31 00:04:42 2015 +0000

    Resolve a FIXME when saving config files
    
    Convert the list store file path encoding for display using
    g_filename_display_name().

 src/setting.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/setting.c b/src/setting.c
index 83c5ed6..dfe6fca 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -183,6 +183,7 @@ Save_List_Store_To_File (const gchar *filename,
                          gint colnum)
 {
     gchar *file_path;
+    gchar *display_path;
     GFile *file;
     GFileOutputStream *ostream;
     GtkTreeIter iter;
@@ -240,12 +241,13 @@ Save_List_Store_To_File (const gchar *filename,
     return;
 
 err:
-    /* FIXME: Format filename encoding for display. */
     file_path = g_file_get_path (file);
+    display_path = g_filename_display_name (file_path);
     Log_Print (LOG_ERROR, _("Cannot write list to file ā€˜%sā€™: %s"),
-               file_path, error->message);
+               display_path, error->message);
 
     g_error_free (error);
+    g_free (display_path);
     g_free (file_path);
     g_object_unref (file);
     return;


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