[gimp/gimp-2-10] app: don't use g_file_peek_path() in splash.c



commit 499a8962b326823bdf12936960798f802c79f283
Author: Ell <ell_se yahoo com>
Date:   Sun Sep 2 13:41:04 2018 -0400

    app: don't use g_file_peek_path() in splash.c
    
    ... use g_file_get_path() instead.
    
    g_file_peek_path() was added in GLib 2.56, but gimp-2-10 only
    requires 2.54.

 app/gui/splash.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/app/gui/splash.c b/app/gui/splash.c
index 4fe06f7d07..9b85430c30 100644
--- a/app/gui/splash.c
+++ b/app/gui/splash.c
@@ -568,7 +568,15 @@ splash_image_load_from_file (GFile    *file,
   gboolean            is_svg = FALSE;
 
   if (be_verbose)
-    g_printerr ("Trying splash '%s' ... ", g_file_peek_path (file));
+    {
+      char *path;
+
+      path = g_file_get_path (file);
+
+      g_printerr ("Trying splash '%s' ... ", path);
+
+      g_free (path);
+    }
 
   info = g_file_query_info (file,
                             G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,


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