[gimp] app: don't g_warning() on filenames that can't be turned into UTF-8



commit 5129b8519b47e07f91ad656f9351b63fe801cd2c
Author: Michael Natterer <mitch gimp org>
Date:   Wed Nov 16 15:30:44 2016 +0100

    app: don't g_warning() on filenames that can't be turned into UTF-8
    
    gimp_data_get_identifier(): use g_printerr() instead.

 app/core/gimpdata.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdata.c b/app/core/gimpdata.c
index 8af8160..d9d7d58 100644
--- a/app/core/gimpdata.c
+++ b/app/core/gimpdata.c
@@ -474,7 +474,8 @@ gimp_data_get_identifier (GimpTagged *tagged)
 
       if (! identifier)
         {
-          g_warning ("Failed to convert '%s' to utf8.\n", path);
+          g_printerr ("%s: failed to convert '%s' to utf8.\n",
+                      G_STRFUNC, path);
           identifier = g_strdup (path);
         }
 


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