diff --git a/ChangeLog b/ChangeLog index 8f473c1bde..55c2b2517b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-11 Michael Natterer + + * plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command): + use g_set_error() instead of g_set_error_literal() which is only + available in glib 2.18. + 2008-09-11 Michael Natterer * plug-ins/script-fu/Makefile.am @@ -33,7 +39,7 @@ * plug-ins/script-fu/scheme-wrapper.c (script_fu_marshal_procedure_call): if an error message was returned from the PDB call, pass it to foreign_error() so it ends - up where it should (consle, text console or error string). + up where it should (console, text console or error string). * plug-ins/script-fu/script-fu-console.c * plug-ins/script-fu/script-fu-text-console.c: set the error diff --git a/plug-ins/script-fu/script-fu-scripts.c b/plug-ins/script-fu/script-fu-scripts.c index d57b25571b..10d3abfb31 100644 --- a/plug-ins/script-fu/script-fu-scripts.c +++ b/plug-ins/script-fu/script-fu-scripts.c @@ -677,7 +677,7 @@ script_fu_run_command (const gchar *command, if (ts_interpret_string (command)) { - g_set_error_literal (error, 0, 0, output->str); + g_set_error (error, 0, 0, "%s", output->str); } else {