Gimp/app/core
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
..
core-enums.c changed descriptions for the GIMP_UNDO_FS_RIGOR and GIMP_UNDO_FS_RELAX 2008-04-09 14:42:32 +00:00
core-enums.h changed descriptions for the GIMP_UNDO_FS_RIGOR and GIMP_UNDO_FS_RELAX 2008-04-09 14:42:32 +00:00
core-types.h
gimp-contexts.c
gimp-contexts.h
gimp-edit.c
gimp-edit.h
gimp-gradients.c
gimp-gradients.h
gimp-gui.c Properly pass the focus from the core to plug-in dialogs: 2008-03-27 16:30:29 +00:00
gimp-gui.h Properly pass the focus from the core to plug-in dialogs: 2008-03-27 16:30:29 +00:00
gimp-modules.c
gimp-modules.h
gimp-parasites.c
gimp-parasites.h
gimp-templates.c
gimp-templates.h
gimp-transform-region.c
gimp-transform-region.h
gimp-transform-resize.c
gimp-transform-resize.h
gimp-transform-utils.c
gimp-transform-utils.h
gimp-units.c
gimp-units.h
gimp-user-install.c don't migrate "documents". 2008-03-24 17:56:27 +00:00
gimp-user-install.h
gimp-utils.c
gimp-utils.h
gimp.c follow renaming of internal_procs.h. 2008-04-04 11:36:54 +00:00
gimp.h
gimparea.c code cleanup. 2008-03-30 17:38:36 +00:00
gimparea.h
gimpbrush-header.h
gimpbrush-load.c
gimpbrush-load.h
gimpbrush-scale.c
gimpbrush-scale.h
gimpbrush.c
gimpbrush.h
gimpbrushclipboard.c
gimpbrushclipboard.h
gimpbrushgenerated-load.c
gimpbrushgenerated-load.h
gimpbrushgenerated-save.c
gimpbrushgenerated-save.h
gimpbrushgenerated.c
gimpbrushgenerated.h
gimpbrushpipe-load.c
gimpbrushpipe-load.h
gimpbrushpipe.c
gimpbrushpipe.h
gimpbuffer.c
gimpbuffer.h
gimpchannel-combine.c
gimpchannel-combine.h
gimpchannel-select.c
gimpchannel-select.h
gimpchannel.c
gimpchannel.h
gimpchannelpropundo.c
gimpchannelpropundo.h
gimpchannelundo.c
gimpchannelundo.h
gimpcontainer-filter.c
gimpcontainer-filter.h
gimpcontainer.c added new methods gimp_container_get_{first,last}_child(). 2008-04-09 09:50:29 +00:00
gimpcontainer.h added new methods gimp_container_get_{first,last}_child(). 2008-04-09 09:50:29 +00:00
gimpcontext.c set the image also if it is NULL. 2008-03-23 13:27:51 +00:00
gimpcontext.h
gimpcoords.c
gimpcoords.h
gimpcurve-load.c
gimpcurve-load.h
gimpcurve-save.c
gimpcurve-save.h
gimpcurve.c Fixes for some Sparse reported issues in app/ 2008-03-28 23:18:19 +00:00
gimpcurve.h
gimpdashpattern.c
gimpdashpattern.h
gimpdata.c prototype indentation and minor declatation and function reordering for 2008-04-19 14:48:50 +00:00
gimpdata.h
gimpdatafactory.c
gimpdatafactory.h
gimpdocumentlist.c Do not any longer keep the document history in two places. We only use 2008-03-24 11:11:15 +00:00
gimpdocumentlist.h
gimpdrawable-blend.c
gimpdrawable-blend.h
gimpdrawable-brightness-contrast.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-brightness-contrast.h
gimpdrawable-bucket-fill.c
gimpdrawable-bucket-fill.h
gimpdrawable-color-balance.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-color-balance.h
gimpdrawable-colorize.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-colorize.h
gimpdrawable-combine.c
gimpdrawable-combine.h
gimpdrawable-convert.c
gimpdrawable-convert.h
gimpdrawable-curves.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-curves.h
gimpdrawable-desaturate.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-desaturate.h
gimpdrawable-equalize.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-equalize.h
gimpdrawable-foreground-extract.c
gimpdrawable-foreground-extract.h
gimpdrawable-histogram.c
gimpdrawable-histogram.h
gimpdrawable-hue-saturation.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-hue-saturation.h
gimpdrawable-invert.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-invert.h
gimpdrawable-levels.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-levels.h replaced unused parameter "context" by "progress" and pass the progress on 2008-04-20 13:38:13 +00:00
gimpdrawable-offset.c
gimpdrawable-offset.h
gimpdrawable-operation.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-operation.h
gimpdrawable-posterize.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-posterize.h
gimpdrawable-preview.c
gimpdrawable-preview.h
gimpdrawable-shadow.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-shadow.h Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-stroke.c
gimpdrawable-stroke.h
gimpdrawable-threshold.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable-threshold.h
gimpdrawable-transform.c
gimpdrawable-transform.h
gimpdrawable.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawable.h Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpdrawablemodundo.c
gimpdrawablemodundo.h
gimpdrawableundo.c
gimpdrawableundo.h
gimpfloatingselundo.c
gimpfloatingselundo.h
gimpgradient-load.c
gimpgradient-load.h
gimpgradient-save.c
gimpgradient-save.h
gimpgradient.c
gimpgradient.h
gimpgrid.c
gimpgrid.h
gimpguide.c
gimpguide.h
gimpguideundo.c
gimpguideundo.h
gimpimage-arrange.c
gimpimage-arrange.h
gimpimage-colorhash.c
gimpimage-colorhash.h
gimpimage-colormap.c
gimpimage-colormap.h
gimpimage-contiguous-region.c
gimpimage-contiguous-region.h
gimpimage-convert-data.h
gimpimage-convert-fsdither.h
gimpimage-convert.c minor cleanup. 2008-04-04 06:29:35 +00:00
gimpimage-convert.h minor cleanup. 2008-04-04 06:29:35 +00:00
gimpimage-crop.c
gimpimage-crop.h
gimpimage-duplicate.c
gimpimage-duplicate.h
gimpimage-flip.c
gimpimage-flip.h
gimpimage-grid.c
gimpimage-grid.h
gimpimage-guides.c
gimpimage-guides.h
gimpimage-item-list.c
gimpimage-item-list.h
gimpimage-merge.c
gimpimage-merge.h
gimpimage-new.c
gimpimage-new.h
gimpimage-pick-color.c
gimpimage-pick-color.h
gimpimage-preview.c
gimpimage-preview.h
gimpimage-quick-mask.c
gimpimage-quick-mask.h
gimpimage-resize.c
gimpimage-resize.h
gimpimage-rotate.c
gimpimage-rotate.h
gimpimage-sample-points.c
gimpimage-sample-points.h
gimpimage-scale.c
gimpimage-scale.h
gimpimage-snap.c Applied patch from Mark Locascio that makes the center point of rectangles 2008-04-12 05:47:56 +00:00
gimpimage-snap.h
gimpimage-undo-push.c
gimpimage-undo-push.h
gimpimage-undo.c
gimpimage-undo.h
gimpimage.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpimage.h Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpimagefile.c deprecate gimp_memsize_to_string() in favor of 2008-03-28 16:33:24 +00:00
gimpimagefile.h Do not any longer keep the document history in two places. We only use 2008-03-24 11:11:15 +00:00
gimpimagemap.c Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
gimpimagemap.h
gimpimageundo.c
gimpimageundo.h
gimpitem-linked.c
gimpitem-linked.h
gimpitem-preview.c
gimpitem-preview.h
gimpitem.c
gimpitem.h
gimpitempropundo.c
gimpitempropundo.h
gimpitemundo.c
gimpitemundo.h
gimplayer-floating-sel.c better descriptions for the GIMP_UNDO_FS_RIGOR and GIMP_UNDO_FS_RELAX undo 2008-04-09 14:06:28 +00:00
gimplayer-floating-sel.h
gimplayer.c
gimplayer.h
gimplayermask.c
gimplayermask.h
gimplayermaskpropundo.c
gimplayermaskpropundo.h
gimplayermaskundo.c
gimplayermaskundo.h
gimplayerpropundo.c
gimplayerpropundo.h
gimplayerundo.c
gimplayerundo.h
gimplist.c
gimplist.h
gimpmarshal.list
gimpmaskundo.c
gimpmaskundo.h
gimpobject.c
gimpobject.h
gimppaintinfo.c
gimppaintinfo.h
gimppalette-import.c
gimppalette-import.h
gimppalette-load.c
gimppalette-load.h
gimppalette-save.c
gimppalette-save.h
gimppalette.c
gimppalette.h
gimpparamspecs-desc.c
gimpparamspecs-desc.h
gimpparamspecs.c
gimpparamspecs.h
gimpparasitelist.c
gimpparasitelist.h
gimppattern-header.h
gimppattern-load.c
gimppattern-load.h
gimppattern.c
gimppattern.h
gimppatternclipboard.c
gimppatternclipboard.h
gimppdbprogress.c
gimppdbprogress.h
gimppickable.c
gimppickable.h
gimppreviewcache.c
gimppreviewcache.h
gimpprogress.c
gimpprogress.h
gimpprojection-construct.c
gimpprojection-construct.h
gimpprojection.c
gimpprojection.h
gimpsamplepoint.c
gimpsamplepoint.h
gimpsamplepointundo.c
gimpsamplepointundo.h
gimpscanconvert.c
gimpscanconvert.h
gimpselection.c clear the selection as gimp_selection_extract() doesn't do this for us any 2008-04-04 14:31:06 +00:00
gimpselection.h
gimpstrokedesc.c
gimpstrokedesc.h
gimpstrokeoptions.c
gimpstrokeoptions.h
gimpsubprogress.c
gimpsubprogress.h
gimptagged.c
gimptagged.h
gimptemplate.c
gimptemplate.h
gimptoolinfo.c
gimptoolinfo.h
gimptooloptions.c
gimptooloptions.h
gimptoolpresets.c
gimptoolpresets.h
gimpundo.c
gimpundo.h
gimpundostack.c added new methods gimp_container_get_{first,last}_child(). 2008-04-09 09:50:29 +00:00
gimpundostack.h
gimpunit.c
gimpunit.h
gimpviewable.c
gimpviewable.h
Makefile.am Move the shadow tiles from the image to the drawable. Fixes bug #100469. 2008-04-21 17:20:51 +00:00
makefile.msc