use g_set_error() instead of g_set_error_literal() which is only available

2008-09-11  Michael Natterer  <mitch@gimp.org>

	* 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
This commit is contained in:
Michael Natterer 2008-09-11 08:36:29 +00:00 committed by Michael Natterer
parent bace080590
commit 13a7c01115
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-09-11 Michael Natterer <mitch@gimp.org>
* 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 <mitch@gimp.org>
* 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

View File

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