Gimp/app/display
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 new function to set the sensitivity of an option_menu. 2002-03-17 16:35:05 +00:00
display-enums.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
display-enums.h removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
display-types.h app/display/display-types.h app/tools/tools-types.h 2003-09-07 10:29:10 +00:00
gimpdisplay-area.c Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-area.h Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-foreach.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpdisplay-foreach.h Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpdisplay-handlers.c Fixed File->Revert, which was completely broken before: 2003-05-17 16:34:30 +00:00
gimpdisplay-handlers.h
gimpdisplay.c moved the code which manipulates gimage->layer_stack and the call to 2003-07-29 16:36:56 +00:00
gimpdisplay.h removed gdisp->draw_guides and gdisp->snap_to_guides. 2003-03-20 11:31:33 +00:00
gimpdisplayshell-appearance.c app/config/gimprc-blurbs.h added separate properties for the fullscreen 2003-07-17 22:30:13 +00:00
gimpdisplayshell-appearance.h app/config/gimprc-blurbs.h added separate properties for the fullscreen 2003-07-17 22:30:13 +00:00
gimpdisplayshell-callbacks.c guard callbacks against being invoked during display destruction. Fixes 2003-10-06 11:25:59 +00:00
gimpdisplayshell-callbacks.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
gimpdisplayshell-cursor.c update the cursor on GDK_ENTER_NOTIFY. 2003-05-18 20:20:57 +00:00
gimpdisplayshell-cursor.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-dnd.c app/core/gimpedit.[ch] app/core/gimpmodules.[ch] app/core/gimpunits.[ch] 2003-09-15 17:26:28 +00:00
gimpdisplayshell-dnd.h app/display/gimpdisplayshell-dnd.[ch] enabled dropping of vectors to the 2003-05-18 14:47:07 +00:00
gimpdisplayshell-draw.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpdisplayshell-draw.h Added support for permanently showing the visible vectors, not only when 2003-09-11 22:24:30 +00:00
gimpdisplayshell-filter-dialog.c app/display/gimpdisplayshell-filter-dialog.c 2003-08-24 13:52:51 +00:00
gimpdisplayshell-filter-dialog.h Re-enabled the display filters. They work exactly the same way as before 2002-03-14 22:42:50 +00:00
gimpdisplayshell-filter.c removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-filter.h removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-handlers.c Added support for permanently showing the visible vectors, not only when 2003-09-11 22:24:30 +00:00
gimpdisplayshell-handlers.h
gimpdisplayshell-layer-select.c switch layers immediately, not when finishing layer_select, so the layer 2003-09-10 17:00:35 +00:00
gimpdisplayshell-layer-select.h made the layer cycling circular. Removed the static layer_select variable 2003-08-17 16:58:39 +00:00
gimpdisplayshell-marching-ants.h
gimpdisplayshell-render.c applied a patch from Pedro Gimeno that fixes the display render problems 2003-04-04 11:42:46 +00:00
gimpdisplayshell-render.h added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
gimpdisplayshell-scale.c app/core/Makefile.am added small wrappers to ease handling of image units 2003-10-01 17:32:14 +00:00
gimpdisplayshell-scale.h new utility function which takes GimpZoomType and zooms "scalesrc" and 2003-05-05 14:48:15 +00:00
gimpdisplayshell-scroll.c Added support for permanently showing the visible vectors, not only when 2003-09-11 22:24:30 +00:00
gimpdisplayshell-scroll.h
gimpdisplayshell-selection.c removed the _bounds() and _boundary() wrappers. 2003-09-03 17:17:18 +00:00
gimpdisplayshell-selection.h removed gdisp->draw_guides and gdisp->snap_to_guides. 2003-03-20 11:31:33 +00:00
gimpdisplayshell-title.c app/core/Makefile.am added small wrappers to ease handling of image units 2003-10-01 17:32:14 +00:00
gimpdisplayshell-title.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-transform.c removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimpdisplayshell-transform.h removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimpdisplayshell.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpdisplayshell.h Added support for permanently showing the visible vectors, not only when 2003-09-11 22:24:30 +00:00
gimpnavigationeditor.c app/display/gimpdisplayshell-callbacks.c app/display/gimpdisplayshell.c 2003-09-09 11:35:27 +00:00
gimpnavigationeditor.h themes/Default/images/Makefile.am 2003-04-03 16:13:12 +00:00
gimpnavigationview.c app/display/gimpdisplayshell-callbacks.c app/display/gimpdisplayshell.c 2003-09-09 11:35:27 +00:00
gimpnavigationview.h themes/Default/images/Makefile.am 2003-04-03 16:13:12 +00:00
gimpprogress.c app/config/gimpconfig-deserialize.c app/config/gimpconfig-serialize.c 2003-08-08 19:30:23 +00:00
gimpprogress.h app/config/gimpconfig-deserialize.c app/config/gimpconfig-serialize.c 2003-08-08 19:30:23 +00:00
gimpstatusbar.c app/core/Makefile.am added small wrappers to ease handling of image units 2003-10-01 17:32:14 +00:00
gimpstatusbar.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
Makefile.am app/display/Makefile.am app/gui/Makefile.am app/paint/Makefile.am 2003-09-07 19:35:10 +00:00
makefile.msc updated win32 (msvc) build 2003-05-24 17:00:03 +00:00