Gimp/tools
Sven Neumann f84608d539 If a procedure call fails, pass a string describing the error as the
2008-08-16  Sven Neumann  <sven@gimp.org>

	If a procedure call fails, pass a string describing the error as
	the second return value. First step towars fixing bug #344818.

	* app/pdb/gimpprocedure.[ch] (gimp_procedure_get_return_values):
	added a GError parameter. If it is set, pass the error message 
to
	the return values.

	* app/pdb/gimppdberror.h: added some more error codes.

	* app/pdb/gimppdb.c
	* app/xcf/xcf.c: pass errors to 
gimp_procedure_get_return_values().

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	show a different error message for execution vs. calling errors.

	* app/plug-in/gimpplugin-progress.c
	(gimp_plug_in_progress_cancel_callback): pass the error
	GIMP_PDB_CANCELLED to gimp_procedure_get_return_values().

	* app/plug-in/gimppluginmanager-call.[ch]
	(gimp_plug_in_manager_call_run): removed the 
'destroy_return_vals'
	parameter.

	* app/plug-in/gimppluginprocedure.c: destroy the return values 
here.

	* app/plug-in/gimppluginprocframe.c: pass an error to
	gimp_procedure_get_return_values().

	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb/fileops.pdb: generate code that passes the
	error to gimp_procedure_get_return_values().

	* app/pdb/*-cmds.c: regenerated.
	
	* plug-ins/pygimp/pygimp-pdb.c: extract the error message from 
the
	return values and pass it to the exception that is thrown.


svn path=/trunk/; revision=26593
2008-08-16 13:57:57 +00:00
..
pdbgen If a procedure call fails, pass a string describing the error as the 2008-08-16 13:57:57 +00:00
defcheck.py improved path handling. Allow to pass the source directory on the 2007-05-06 13:12:25 +00:00
gimp-mkenums quote "true" to fix warning about reserved word. 2006-10-24 13:26:35 +00:00
gimp-remote-x11.c remove check for putenv(). 2007-11-06 13:28:19 +00:00
gimp-remote.c tools/Makefile.am tools/gimp-remote.[ch] split gimp-remote into common and 2007-10-25 14:46:27 +00:00
gimp-remote.h tools/Makefile.am tools/gimp-remote.[ch] split gimp-remote into common and 2007-10-25 14:46:27 +00:00
gimppath2svg.py New file: Script to convert an exported gimp-path to a simple SVG-File. 2000-10-03 21:50:09 +00:00
gimptool.c minor cleanup, hopefully not breaking anything. 2007-11-17 13:30:23 +00:00
kernelgen.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
Makefile.am change all LIBFOO variables to FOO_LIBS for consistency, could get rid of 2008-08-11 14:40:48 +00:00
test-clipboard.c tools/gimp-remote.c use G_OPTION_FLAG_NO_ARG where needed. 2005-09-26 10:01:22 +00:00