Gimp/app/actions
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
..
buffers-commands.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
buffers-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-commands.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
channels-commands.h Cleaned up my "To Selection" cleanup: 2003-08-27 00:52:00 +00:00
colormap-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
colormap-commands.h Fix for bug #122695: 2003-09-19 11:40:12 +00:00
colormap-editor-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
colormap-editor-commands.h Fix for bug #122695: 2003-09-19 11:40:12 +00:00
data-commands.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
data-commands.h the active_tool may change in the middle of gdisplay_canvas_events(), so 2001-07-08 21:44:52 +00:00
debug-commands.c changed GimpObject::get_memsize() to return a second value named 2003-08-25 10:49:33 +00:00
debug-commands.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
dialogs-commands.c accept a list of dialog identifiers and try to raise an existing dockable 2003-09-30 15:48:14 +00:00
dialogs-commands.h added a "menu_title" which is registered with each menu. 2003-09-23 16:17:25 +00:00
documents-commands.c added gimp_list_uniquefy_name() utility function. 2003-04-06 11:21:56 +00:00
documents-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
drawable-commands.c don't default to clip_result == TRUE (unlike the other transform 2003-05-20 15:26:38 +00:00
drawable-commands.h added new enum GimpRotationType. 2003-05-20 10:36:29 +00:00
edit-commands.c cleanup. 2003-09-30 02:44:17 +00:00
edit-commands.h cleanup. 2003-09-30 02:44:17 +00:00
error-console-commands.c Cleaned up and improved the message system: 2003-06-13 14:37:00 +00:00
error-console-commands.h Cleaned up and improved the message system: 2003-06-13 14:37:00 +00:00
file-commands.c free the memory allocated for the GimpLut structure. Removed trailing 2003-09-05 01:40:29 +00:00
file-commands.h Added preliminary support for image templates. Not finished yet. Addresses 2003-04-03 17:50:56 +00:00
gradient-editor-commands.c app/display/gimpdisplayshell-filter-dialog.c 2003-08-24 13:52:51 +00:00
gradient-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradients-commands.c changed GimpHelpFunc typedef: - renamed "const gchar *help_data" to "const 2003-08-23 19:35:05 +00:00
gradients-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
help-commands.c changed GimpHelpFunc typedef: - renamed "const gchar *help_data" to "const 2003-08-23 19:35:05 +00:00
help-commands.h app/gui/Makefile.am removed... 2002-03-20 20:08:19 +00:00
image-commands.c removed the _bounds() and _boundary() wrappers. 2003-09-03 17:17:18 +00:00
image-commands.h moved Configure Grid entry to the <Image>/Image branch 2003-07-27 10:34:15 +00:00
images-commands.c app/core/gimpselection.c app/gui/images-menus.c string fixes. 2003-09-12 15:14:02 +00:00
images-commands.h app/core/gimpselection.c app/gui/images-menus.c string fixes. 2003-09-12 15:14:02 +00:00
layers-commands.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
layers-commands.h app/gui/layers-commands.[ch] added "Merge Visible Layers..." and "Flatten 2003-08-31 18:10:15 +00:00
palette-editor-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
palette-editor-commands.h Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
palettes-commands.c free the memory allocated for the GimpLut structure. Removed trailing 2003-09-05 01:40:29 +00:00
palettes-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
plug-in-commands.c pass the gdisp_ID to plug_in_run() again. Broke this with my last 2003-06-20 14:05:17 +00:00
plug-in-commands.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
qmask-commands.c app/display/gimpdisplayshell.c app/gui/brush-select.c 2003-08-22 01:42:57 +00:00
qmask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
quick-mask-commands.c app/display/gimpdisplayshell.c app/gui/brush-select.c 2003-08-22 01:42:57 +00:00
quick-mask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
select-commands.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
select-commands.h app/gui/menus.c added a menu entry that toggles the QuickMask state and 2002-08-27 13:29:47 +00:00
templates-commands.c app/display/gimpdisplayshell.c app/gui/brush-select.c 2003-08-22 01:42:57 +00:00
templates-commands.h invalidate the preview when the stock_id changes. 2003-04-13 16:25:14 +00:00
tool-options-commands.c remember the name of the saved options and set it again after 2003-10-02 10:16:02 +00:00
tool-options-commands.h added a "Rename Saved Options" submenu and factored on-the-fly submenu 2003-09-30 18:33:46 +00:00
tools-commands.c expects the tool identifier as a GQuark now. 2003-06-10 14:31:53 +00:00
tools-commands.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
vectors-commands.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
vectors-commands.h derive it from GimpViewable. 2003-09-27 13:46:30 +00:00
view-commands.c moved Configure Grid entry to the <Image>/Image branch 2003-07-27 10:34:15 +00:00
view-commands.h moved Configure Grid entry to the <Image>/Image branch 2003-07-27 10:34:15 +00:00