Gimp/app/pdb
Michael Natterer f0372cad0f Treat changes to the selection like changes to any other drawable:
2003-10-06  Michael Natterer  <mitch@gimp.org>

	Treat changes to the selection like changes to any other drawable:

	* app/core/gimpchannel.c
	* app/core/gimpchannel-combine.c: call gimp_drawable_update() after
	changing the channel.

	* app/core/gimpimage.[ch]: added struct GimpImageFlushAccumulator
	with one member "gboolean mask_changed". Connect to "update" of
	the selection and set accum.mask_changed to TRUE in the callback.
	Added default implementation for GimpImage::flush() and emit
	"mask_changed" there.

	Unrelated:
	* app/core/gimpimage.h: removed GimpGuide struct...
	* app/core/gimpimage-guides.h: ...and added it here.

	* app/core/gimpimage-undo-push.c (undo_pop_mask)
	(undo_pop_channel_mod): don't distinguish between selection and
	non-selection channels and just call gimp_drawable_update().

	* app/core/gimpundo.h
	* app/core/gimpimage-undo.c: removed "gboolean mask_changed" from
	the GimpUndoAccumulator struct since we don't have to care about
	that signal explicitly any more.

	* app/display/gimpdisplay-foreach.[ch]: removed gimp_displays_flush().

	* tools/pdbgen/pdb/display.pdb (displays_flush_invoker): call
	gimp_image_flush() on all images so the flush accumulator is
	honored.

	This generalization enables the removal of more special purpose
	code which was needed to treat the selection different:

	* app/core/gimpimage-mask-select.[ch]: removed...

	* app/core/gimpchannel-select.[ch]: ...and added under a new name
	because it's not selection specific any more.

	* app/core/gimpimage-mask.[ch]: removed...

	* app/core/gimpselection.[ch]: ...added the two remaining
	functions here. Removed all calls to gimp_image_mask_changed().

	* app/core/Makefile.am
	* app/core/gimp-edit.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-scale.c
	* app/core/gimpimage-snap.c
	* app/display/gimpdisplayshell.c
	* app/gui/channels-commands.c
	* app/gui/layers-commands.c
	* app/gui/select-commands.c
	* app/gui/vectors-commands.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpellipseselecttool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimprectselecttool.c
	* app/tools/gimptransformtool.c
	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpvectorstreeview.c
	* app/xcf/xcf-save.c
	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/selection.pdb
	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly.

	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpimage-colormap.c
	* app/core/gimplayer-floating-sel.c
	* app/core/gimplayer.c
	* app/gui/image-menu.c
	* app/paint/gimppaintcore.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpinkoptions.c
	* app/tools/gimpvectortool.c: removed useless and/or obsolete
	#includes.

	* app/pdb/display_cmds.c
	* app/pdb/paths_cmds.c
	* app/pdb/selection_cmds.c
	* app/pdb/selection_tools_cmds.c: regenerated.
2003-10-06 12:17:11 +00:00
..
.cvsignore
brush_select_cmds.c Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
brushes_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-09-04 17:28:13 +00:00
channel_cmds.c removed "visible" and all its API... 2003-09-11 19:52:29 +00:00
color_cmds.c gsize is unsigned, reflect that in the g_prints. 2003-08-31 18:19:13 +00:00
convert_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
display_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
drawable_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
edit_cmds.c tools/pdbgen/pdb/edit.pdb apply Simon's changes (GIMP_OBJECT casts) to 2003-09-26 16:56:05 +00:00
fileops_cmds.c Fixed some issues with the PDB thumbnail functions spotted by Wolfgang 2003-08-25 11:35:16 +00:00
floating_sel_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
font_select_cmds.c Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
fonts_cmds.c app/core/gimpedit.[ch] app/core/gimpmodules.[ch] app/core/gimpunits.[ch] 2003-09-15 17:26:28 +00:00
gimp-pdb.c app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c 2003-09-16 13:12:50 +00:00
gimp-pdb.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
gimppdb.c app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c 2003-09-16 13:12:50 +00:00
gimppdb.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
gimppluginprocedure.c Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
gimppluginprocedure.h Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
gimpprocedure.c app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c 2003-09-16 13:12:50 +00:00
gimpprocedure.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
gimprc_cmds.c UTF-8 validate the value set using gimprc_set(); mention this in the 2003-09-22 21:20:17 +00:00
gradient_select_cmds.c Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
gradients_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-09-04 17:28:13 +00:00
guides_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
help_cmds.c Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
image_cmds.c free the colormap and set colormap size to 0 after converting from 2003-08-28 20:01:30 +00:00
internal_procs.c added a preliminary PDB API for vectors import. Will change when the new 2003-09-21 17:29:12 +00:00
internal_procs.h fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
layer_cmds.c removed "visible" and all its API... 2003-09-11 19:52:29 +00:00
Makefile.am use -u to prevent garbage collection of symbols prematurely. I wonder if 2003-09-16 01:05:12 +00:00
makefile.msc updated win32 (msvc) build 2003-05-24 17:00:03 +00:00
message_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
misc_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
misc_tools_cmds.c removed the _value() and _is_empty() wrappers. 2003-09-03 15:13:19 +00:00
paint_tools_cmds.c added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
palette_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
palette_select_cmds.c Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
palettes_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-09-04 17:28:13 +00:00
parasite_cmds.c Fixed bug #79897 for all parasite procedures: 2003-08-17 19:58:59 +00:00
paths_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
pattern_select_cmds.c Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
patterns_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-09-04 17:28:13 +00:00
pdb-types.h devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
pdb_glue.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
plug_in_cmds.c use regfree() instead of accessing regex_t directly. 2003-09-04 17:10:30 +00:00
procedural_db.c app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c 2003-09-16 13:12:50 +00:00
procedural_db.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
procedural_db_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
README
selection_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
selection_tools_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
text_tool_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
transform_tools_cmds.c removed... 2003-09-15 17:41:18 +00:00
undo_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
unit_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +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.