gimp r26968 - in trunk: . plug-ins/script-fu



Author: neo
Date: Wed Sep 17 11:18:53 2008
New Revision: 26968
URL: http://svn.gnome.org/viewvc/gimp?rev=26968&view=rev

Log:
2008-09-17  Sven Neumann  <sven gimp org>

	* plug-ins/script-fu/script-fu-scripts.c 
(script_fu_load_script):
	tweaked error message.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/script-fu/script-fu-scripts.c

Modified: trunk/plug-ins/script-fu/script-fu-scripts.c
==============================================================================
--- trunk/plug-ins/script-fu/script-fu-scripts.c	(original)
+++ trunk/plug-ins/script-fu/script-fu-scripts.c	Wed Sep 17 11:18:53 2008
@@ -706,10 +706,13 @@
       if (! script_fu_run_command (command, &error))
         {
           gchar *display_name = g_filename_display_name (file_data->filename);
+          gchar *message      = g_strdup_printf (_("Error while loading %s:"),
+                                                 display_name);
+
+          g_message ("%s\n\n%s", message, error->message);
 
-          g_message (_("Error while loading\n\"%s\"\n\n%s"),
-                     display_name, error->message);
           g_clear_error (&error);
+          g_free (message);
           g_free (display_name);
         }
 



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