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.
This commit is contained in:
Ell
2018-09-02 13:41:04 -04:00
parent 14c3c33f1b
commit 499a8962b3

View File

@ -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,