Gimp/app/pdb
Michael Natterer e5be5664ed Move the shadow tiles from the image to the drawable. Fixes bug #100469.
2008-04-21  Michael Natterer  <mitch@gimp.org>

	Move the shadow tiles from the image to the drawable.
	Fixes bug #100469.

	* app/core/Makefile.am
	* app/core/gimpdrawable-shadow.[ch]: new files implementing
	the shadow tiles.

	* app/core/gimpimage.[ch]: remove the shadow tile manager from the
	GimpImage struct. Remove gimp_image_get_shadow_tiles() and
	_free_shadow_tiles().

	* app/core/gimpdrawable.[ch]: add the shadow tile manager
	here. Remove get_shadow_tiles() and merge_shadow(). Free the
	shadow tiles in finalize and when the drawable gets removed from
	the image.

	* app/core/gimpdrawable-brightness-contrast.c
	* app/core/gimpdrawable-color-balance.c
	* app/core/gimpdrawable-colorize.c
	* app/core/gimpdrawable-curves.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-hue-saturation.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-levels.c
	* app/core/gimpdrawable-operation.c
	* app/core/gimpdrawable-posterize.c
	* app/core/gimpdrawable-threshold.c
	* app/core/gimpimagemap.c: changed accordingly. Free the shadow tiles
	after using them.

	* app/plug-in/gimpplugin-cleanup.[ch]: add
	gimp_plug_in_cleanup_add_shadow() and _remove_shadow() which keep
	track of whether shadow tiles were created on behalf of a plug-in
	procedure.

	(gimp_plug_in_cleanup): free shadow tiles which were created but
	not destroyed by a plug-in procedure.

	* app/plug-in/gimpplugin-message.c (plug_in_handle_tile_request):
	call gimp_plug_in_cleanup_add_shadow() whenever a plug-in requests
	shadow tiles.

	* tools/pdbgen/pdb/drawable.pdb: use the new drawable shadow
	API. Add new procedure gimp-drawable-free-shadow. Call
	gimp_plug_in_cleaup_remove_shadow() when it gets called.

	* tools/pdbgen/pdb/image.pdb: deprecate gimp-image-free-shadow.
	Calling it has no effect any longer.

	* app/pdb/drawable-cmds.c
	* app/pdb/image-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.


svn path=/trunk/; revision=25510
2008-04-21 17:20:51 +00:00
..
brush-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
brush-select-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
brushes-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
buffer-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
channel-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
color-cmds.c replaced unused parameter "context" by "progress" and pass the progress on 2008-04-20 13:38:13 +00:00
context-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
convert-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
display-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
drawable-cmds.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
drawable-transform-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
edit-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
fileops-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
floating-sel-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
font-select-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
fonts-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
gimp-pdb-compat.c added "gboolean non_empty" to require the string being non-empty. Changed 2007-04-25 14:23:05 +00:00
gimp-pdb-compat.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimppdb-query.c added GError arguments and reduce number of labels: to one by simply 2007-12-05 15:21:45 +00:00
gimppdb-query.h added GError arguments and reduce number of labels: to one by simply 2007-12-05 15:21:45 +00:00
gimppdb-utils.c added test for floating items. 2008-04-04 07:21:27 +00:00
gimppdb-utils.h added test for floating items. 2008-04-04 07:21:27 +00:00
gimppdb.c use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimppdb.h use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimppdberror.c use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimppdberror.h use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimpprocedure.c use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimpprocedure.h use GError for error reporting in PDB invoker methods. 2007-12-02 18:05:54 +00:00
gimprc-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
gradient-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
gradient-select-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
gradients-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
grid-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
guides-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
help-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
image-cmds.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
internal-procs.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
internal-procs.h forgot to move the generated header 2008-04-04 11:33:00 +00:00
layer-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
Makefile.am changed the names of the generated files. 2008-04-04 11:15:55 +00:00
makefile.msc **/makefile.msc app/gimpcore.def : updated so it compiles and links 2008-01-04 18:42:07 +00:00
message-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
misc-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
paint-tools-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
palette-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
palette-select-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
palettes-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
parasite-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
paths-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
pattern-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
pattern-select-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
patterns-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
pdb-types.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
plug-in-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
procedural-db-cmds.c canonicalize the procedure name and also try compat names. 2008-04-07 09:12:07 +00:00
progress-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
README
selection-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
selection-tools-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
text-layer-cmds.c reorder functions so getters and setters are together, rename fontsize() 2008-04-04 15:42:50 +00:00
text-tool-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
transform-tools-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
undo-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
unit-cmds.c changed the names of the generated files. 2008-04-04 11:15:55 +00:00
vectors-cmds.c added gimp_vectors_new_from_text_layer(). 2008-04-04 14:50:42 +00:00

This directory contains the PDB-wrappers for various internal
Gimp functions.

THESE FILES ARE AUTOGENERATED AND CHANGES HERE ARE USELESS!

If you need to change the code please have a look in ../../tools/pdbgen/pdb.