Gimp/app/tools
Michael Natterer 2e61d12ed4 Moved the calls to floating_sel_relax()/rigor() from various places to two
2004-04-13  Michael Natterer  <mitch@gimp.org>

	Moved the calls to floating_sel_relax()/rigor() from various
	places to two single spots in the core where they are actually
	needed. Fixes bug #138356 (which was caused by the projection
	being triggered in the middle of changing the floating selection's
	size or the size of the drawable it is attached to). This commit
	effectively removes floating selection fiddling from the core's
	public API.

	* app/core/gimpdrawable.[ch] (gimp_drawable_has_floating_sel): new
	function which returns TRUE if there is a floating selection
	attached to the drawable.

	* app/core/gimpdrawable.c (gimp_drawable_translate)
	(gimp_drawable_set_tiles_full): if the drawable *has* a floating
	selection, relax/rigor it before/after modifying the drawable.

	* app/core/gimplayer.c (gimp_layer_translate)
	(gimp_layer_set_tiles): if the layer *is* the floating selection,
	relax/rigor it before/after modifying it.

	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-crop.c
	* app/core/gimpimage-flip.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-rotate.c
	* app/core/gimpimage-scale.c
	* app/gui/layers-commands.c
	* app/tools/gimpeditselectiontool.c
	* tools/pdbgen/pdb/layer.pdb: removed calls to
	floating_sel_rigor()/relax() all over the place. Also removed
	lots of undo groups which are obsolete now.

	* app/pdb/layer_cmds.c: regenerated.
2004-04-13 13:54:54 +00:00
..
.cvsignore configure.in app/Makefile.am moved all tool sources to app/tools 2001-01-22 01:46:28 +00:00
gimp-tools.c Replaced the histogram tool by a histogram dialog: 2003-11-01 02:39:34 +00:00
gimp-tools.h app/paint/Makefile.am removed... ...and added. 2003-09-18 13:51:10 +00:00
gimpairbrushtool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpairbrushtool.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpblendoptions.c override the "gradient_repeat" property inherited from GimpPaintOptions 2004-03-13 15:48:32 +00:00
gimpblendoptions.h added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
gimpblendtool.c app/display/gimpdisplayshell.c app/gui/brush-select.c 2003-08-22 01:42:57 +00:00
gimpblendtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpbrightnesscontrasttool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpbrightnesscontrasttool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpbrushtool.c added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimpbrushtool.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpbucketfilloptions.c Re-enabled filling the whole selection using the bucket fill tool. Fixes 2004-01-27 15:26:11 +00:00
gimpbucketfilloptions.h Re-enabled filling the whole selection using the bucket fill tool. Fixes 2004-01-27 15:26:11 +00:00
gimpbucketfilltool.c Re-enabled filling the whole selection using the bucket fill tool. Fixes 2004-01-27 15:26:11 +00:00
gimpbucketfilltool.h Removed support for pluggable tools: 2003-04-15 14:20:19 +00:00
gimpbycolorselecttool.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpbycolorselecttool.h bumped version number to 1.3.9 2002-08-22 12:49:01 +00:00
gimpclonetool.c Ctrl only sets the clone source when Shift isn't pressed at the same time 2003-09-03 16:41:30 +00:00
gimpclonetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcolorbalancetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpcolorbalancetool.h More color correction stuff cleanup: 2002-09-04 15:25:15 +00:00
gimpcolorizetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpcolorizetool.h changed the range of the "lightness" parameter to [-100..+100], where -100 2003-11-18 16:06:47 +00:00
gimpcoloroptions.c Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
gimpcoloroptions.h Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
gimpcolorpickeroptions.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolorpickeroptions.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolorpickertool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpcolorpickertool.h new enum GimpColorFrameMode. 2003-10-15 15:16:50 +00:00
gimpcolortool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolortool.h Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
gimpconvolvetool.c made "tool-info" a G_PARAM_CONSTRUCT_ONLY property. 2003-08-30 16:41:35 +00:00
gimpconvolvetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcropoptions.c app/tools/gimpcropoptions.c revert back to "Current". 2003-10-19 16:04:01 +00:00
gimpcropoptions.h don't scan "app/tools/tools-enums.h" for PDB types since the PDB doesn't 2003-09-26 16:20:05 +00:00
gimpcroptool.c app/gui/color-notebook.c (color_notebook_new) app/tools/gimpcroptool.c 2004-03-19 10:15:56 +00:00
gimpcroptool.h GimpViewableDialogs everywhere, cleanup: 2002-09-01 08:44:57 +00:00
gimpcurvestool.c app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to 2004-03-12 13:50:36 +00:00
gimpcurvestool.h app/tools/gimpcurvestool.[ch] removed obsoleted variables. 2004-02-25 12:31:18 +00:00
gimpdodgeburntool.c made "tool-info" a G_PARAM_CONSTRUCT_ONLY property. 2003-08-30 16:41:35 +00:00
gimpdodgeburntool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpdrawtool.c Fixed several off-by-one problems in display: 2004-03-20 21:59:41 +00:00
gimpdrawtool.h added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimpeditselectiontool.c Moved the calls to floating_sel_relax()/rigor() from various places to two 2004-04-13 13:54:54 +00:00
gimpeditselectiontool.h Enabled/fixed moving of channels and layer masks (was something between 2004-01-12 14:13:24 +00:00
gimpellipseselecttool.c Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimpellipseselecttool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimperasertool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimperasertool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpflipoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpflipoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpfliptool.c should actually call gimp_item_flip() on the path to transform. Fixes bug 2003-10-31 09:38:04 +00:00
gimpfliptool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpfreeselecttool.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpfreeselecttool.h app/tools/gimpfreeselecttool.[ch] added the possibility to <alt>+drag the 2003-05-27 11:52:03 +00:00
gimpfuzzyselecttool.c restore the cap_style and join_style properties for the XOR GdkGC to the 2003-12-17 12:59:06 +00:00
gimpfuzzyselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimphistogramoptions.c make it a two-way connection and added a property_name parameter so it can 2003-10-25 17:25:34 +00:00
gimphistogramoptions.h call gimp_image_colormap_changed() after installing the colormap. 2004-02-12 14:09:35 +00:00
gimphuesaturationtool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimphuesaturationtool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpimagemapoptions.c app/tools/gimpcurvestool.[ch] app/tools/gimpimagemapoptions.[ch] 2004-02-25 10:23:43 +00:00
gimpimagemapoptions.h app/tools/gimpcurvestool.[ch] app/tools/gimpimagemapoptions.[ch] 2004-02-25 10:23:43 +00:00
gimpimagemaptool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpimagemaptool.h moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpinkoptions-gui.c app/tools/gimpcurvestool.c app/tools/gimpinkoptions.c removed explicit 2004-01-29 13:59:14 +00:00
gimpinkoptions-gui.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinkoptions.c app/tools/gimpcurvestool.c app/tools/gimpinkoptions.c removed explicit 2004-01-29 13:59:14 +00:00
gimpinkoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinktool-blob.c don't access the array before checking if the index is within the valid 2004-02-23 20:12:35 +00:00
gimpinktool-blob.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpinktool.c app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to 2004-03-12 13:50:36 +00:00
gimpinktool.h Removed support for pluggable tools: 2003-04-15 14:20:19 +00:00
gimpiscissorstool.c don't activate the iscissors tool if it's already active (bug #132351). 2004-02-08 22:28:21 +00:00
gimpiscissorstool.h app/gui/edit-commands.c added "Fill with Pattern" menu entry as suggested 2003-07-02 18:01:19 +00:00
gimplevelstool.c compute the slider positions in the expose event handler so that the 2004-03-05 14:22:02 +00:00
gimplevelstool.h app/tools/gimpcurvestool.[ch] removed obsoleted variables. 2004-02-25 12:31:18 +00:00
gimpmagnifyoptions.c added "gboolean allow_percent" to gimp_param_spec_unit() and to the 2003-07-17 15:22:21 +00:00
gimpmagnifyoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmagnifytool.c Store the zoom factor as float, not as a ratio. 2004-01-29 22:22:29 +00:00
gimpmagnifytool.h new utility function which takes GimpZoomType and zooms "scalesrc" and 2003-05-05 14:48:15 +00:00
gimpmeasureoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmeasureoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmeasuretool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpmeasuretool.h don't use InfoDialog; always display pixels and real-world units in the 2003-10-20 17:36:18 +00:00
gimpmoveoptions.c app/tools/gimpcropoptions.c revert back to "Current". 2003-10-19 16:04:01 +00:00
gimpmoveoptions.h changed "gboolean move_mask" to "GimpTransformType move_type" and added an 2003-09-16 16:23:38 +00:00
gimpmovetool.c redid my last layer_mask vs. layer move fix by reordering the whole 2004-03-09 13:24:15 +00:00
gimpmovetool.h call tool_manager_oper_active_update() also on GDK_ENTER_NOTIFY, 2003-10-29 15:03:56 +00:00
gimppaintbrushtool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppaintbrushtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimppaintoptions-gui.c marked new strings for translation. 2004-03-04 16:10:57 +00:00
gimppaintoptions-gui.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimppainttool.c added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimppainttool.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppenciltool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppenciltool.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpperspectivetool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpperspectivetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpposterizetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpposterizetool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimprectselecttool.c Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimprectselecttool.h Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimpregionselecttool.c restore the cap_style and join_style properties for the XOR GdkGC to the 2003-12-17 12:59:06 +00:00
gimpregionselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimprotatetool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimprotatetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpscaletool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpscaletool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpselectionoptions.c added "gboolean allow_percent" to gimp_param_spec_unit() and to the 2003-07-17 15:22:21 +00:00
gimpselectionoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpselectiontool.c app/tools/gimpdrawtool.c app/tools/gimpselectiontool.c 2004-03-10 12:45:11 +00:00
gimpselectiontool.h bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. 2001-11-22 23:46:13 +00:00
gimpsheartool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpsheartool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsmudgetool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpsmudgetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsourcetool.c Ctrl only sets the clone source when Shift isn't pressed at the same time 2003-09-03 16:41:30 +00:00
gimpsourcetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimptextoptions.c app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is 2004-03-14 17:54:23 +00:00
gimptextoptions.h app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is 2004-03-14 17:54:23 +00:00
gimptexttool.c push an undo group only when it's needed. This resurrects text undo 2004-04-10 18:11:00 +00:00
gimptexttool.h preserve the text tool on image changes. Instead connect to the text 2004-03-22 14:32:47 +00:00
gimpthresholdtool.c app/tools/gimpcurvestool.c app/tools/gimplevelstool.c added buttons to 2004-03-05 01:31:33 +00:00
gimpthresholdtool.h Histogram cleanup: 2002-09-07 17:27:32 +00:00
gimptool.c app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to 2004-03-12 13:50:36 +00:00
gimptool.h added boolean return value to GimpTool::initialize(). Returning FALSE 2004-01-21 16:07:48 +00:00
gimptoolcontrol.c put overly picky sanity checks into #ifdef GIMP_UNSTABLE ... #endif so we 2004-02-08 21:46:30 +00:00
gimptoolcontrol.h removed GimpToolState (ACTIVE, INACTIVE). 2003-05-06 11:11:15 +00:00
gimptooloptions-gui.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptooloptions-gui.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptransformoptions.c Completed the fix for bug #136702: 2004-03-13 17:45:58 +00:00
gimptransformoptions.h Completed the fix for bug #136702: 2004-03-13 17:45:58 +00:00
gimptransformtool-undo.c added "gint ref_count" to the TileManager struct. 2003-05-26 17:02:06 +00:00
gimptransformtool-undo.h app/tools/gimptransformtool.c removed old path undo stuff. 2003-05-18 10:44:09 +00:00
gimptransformtool.c One really should use braces when mixing additions and multiplication and 2004-03-31 14:21:36 +00:00
gimptransformtool.h app/widgets/Makefile.am added a simple utility function 2003-10-20 21:27:34 +00:00
gimpvectoroptions.c Since GimpVectorTool is no GimpSelectionTool, it does not make sense to 2003-11-14 23:10:24 +00:00
gimpvectoroptions.h Since GimpVectorTool is no GimpSelectionTool, it does not make sense to 2003-11-14 23:10:24 +00:00
gimpvectortool.c fixed condition which triggers the path tool's undo hack. Fixes bug 2004-03-25 12:46:20 +00:00
gimpvectortool.h Fixed missing undo step when moving (components of) the path. Don't add an 2003-12-31 02:10:09 +00:00
Makefile.am Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
makefile.msc updated 2004-03-07 23:13:51 +00:00
tool_manager.c don't reinitialize the tool when the image becomes dirty but just cancel 2004-03-10 12:25:15 +00:00
tool_manager.h added boolean return value to GimpTool::initialize(). Returning FALSE 2004-01-21 16:07:48 +00:00
tools-enums.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
tools-enums.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
tools-types.h Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00