Bug 552785 – Script-fu run errors do not show in UI

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

	Bug 552785 – Script-fu run errors do not show in UI

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	fix the code that passes the error message back via the pipe.


svn path=/trunk/; revision=26997
This commit is contained in:
Michael Natterer
2008-09-18 15:40:59 +00:00
committed by Michael Natterer
parent e0a2e4e5db
commit be043836f6
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-09-18 Michael Natterer <mitch@gimp.org>
Bug 552785 Script-fu run errors do not show in UI
* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
fix the code that passes the error message back via the pipe.
2008-09-18 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):

View File

@ -758,7 +758,8 @@ script_fu_script_proc (const gchar *name,
{
status = GIMP_PDB_EXECUTION_ERROR;
*nreturn_vals = 2;
values[2].data.d_string = error->message;
values[1].type = GIMP_PDB_STRING;
values[1].data.d_string = error->message;
}
g_free (command);
@ -779,7 +780,8 @@ script_fu_script_proc (const gchar *name,
{
status = GIMP_PDB_EXECUTION_ERROR;
*nreturn_vals = 2;
values[2].data.d_string = error->message;
values[1].type = GIMP_PDB_STRING;
values[1].data.d_string = error->message;
}
g_free (command);