From 13a7c011150ce612610bff9913fe5e7f59fac4ab Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 11 Sep 2008 08:36:29 +0000 Subject: [PATCH] use g_set_error() instead of g_set_error_literal() which is only available 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. svn path=/trunk/; revision=26922 --- ChangeLog | 8 +++++++- plug-ins/script-fu/script-fu-scripts.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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 {