Gimp/app/gui
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 new directory which will contain all gui code 2001-04-14 15:21:45 +00:00
about-dialog.c don't abuse the SPLASHSCREEN window type hint, instead make the about 2004-03-14 20:55:13 +00:00
about-dialog.h app/devices.[ch] app/gui/about-dialog.[ch] app/gui/preferences-dialog.[ch] 2001-04-18 16:39:34 +00:00
authors.h Fixed/Added some UTF-8 encoded names. Please speak up if I did mess up 2003-10-25 23:39:51 +00:00
brush-select.c add gimp_int_option_menu_set_history as a wrapper for 2003-11-14 19:02:24 +00:00
brush-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
brushes-menu.c Disallow editing of data objects which have no save functionality. Also 2004-02-05 22:17:14 +00:00
brushes-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
buffers-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-menu.c app/gui/brushes-menu.c app/gui/buffers-menu.c app/gui/channels-menu.c 2003-09-11 16:43:07 +00:00
buffers-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-commands.c app/gui/channels-commands.c app/gui/layers-commands.c 2004-03-17 16:45:18 +00:00
channels-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
channels-menu.c app/gui/brushes-menu.c app/gui/channels-menu.c 2003-10-01 22:31:29 +00:00
channels-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
color-history.c app/gui/color-history.[ch] app/gui/gui.c moved the color history out of 2003-11-13 15:25:38 +00:00
color-history.h app/gui/color-history.[ch] app/gui/gui.c moved the color history out of 2003-11-13 15:25:38 +00:00
color-notebook.c app/gui/color-notebook.c (color_notebook_new) app/tools/gimpcroptool.c 2004-03-19 10:15:56 +00:00
color-notebook.h removed color_notebook_new() and renamed color_notebook_viewable_new() to 2003-11-10 17:55:44 +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
colormap-editor-menu.c app/gui/brushes-menu.c app/gui/channels-menu.c 2003-10-01 22:31:29 +00:00
colormap-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
convert-dialog.c added a message explaining that GIMP cannot convert to a palette with more 2004-03-08 19:23:05 +00:00
convert-dialog.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
data-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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 removed trailing whitespace. 2004-02-05 12:52:35 +00:00
debug-commands.h corrected #define for the debug menu. 2004-03-21 13:39:22 +00:00
dialogs-commands.c replaced the indexed palette in the default "Layers, Channels, Paths"-Dock 2004-01-21 23:48:38 +00:00
dialogs-commands.h removed the "Move to Screen" hack. 2003-11-10 00:24:33 +00:00
dialogs-constructors.c Sort the plugin menu entries with the mnemonics stripped. Avoids weird 2004-03-17 14:14:18 +00:00
dialogs-constructors.h forgot to declare gimp_color_display_stack_clone(). 2003-11-21 22:52:36 +00:00
dialogs-menu.c marked new strings for translation. 2004-03-04 16:10:57 +00:00
dialogs-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
dialogs.c added some g_return_if_fail(). 2004-01-31 19:00:26 +00:00
dialogs.h g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
documents-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
documents-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
documents-menu.c app/gui/brushes-menu.c app/gui/channels-menu.c 2003-10-01 20:46:48 +00:00
documents-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
drawable-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
drawable-commands.h added new enum GimpRotationType. 2003-05-20 10:36:29 +00:00
edit-commands.c added new signal "buffer_changed" and new function 2004-02-19 12:49:15 +00:00
edit-commands.h converted tabs to spaces. 2004-01-16 10:06:19 +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
error-console-menu.c app/display/gimpdisplayshell-filter-dialog.c 2003-08-24 13:52:51 +00:00
error-console-menu.h Cleaned up and improved the message system: 2003-06-13 14:37:00 +00:00
file-commands.c removed the undo clearing/sanitizing code... 2004-03-22 13:46:14 +00:00
file-commands.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-dialog-utils.c new function which configures the dialog to load an image. 2004-03-01 13:40:46 +00:00
file-dialog-utils.h renamed parameters and removed useless #includes. 2004-02-27 14:51:51 +00:00
file-new-dialog.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
file-new-dialog.h added new function gimp_dialog_factory_add_foreign() which adds a dialog 2003-05-02 18:43:15 +00:00
file-open-dialog.c new function which configures the dialog to load an image. 2004-03-01 13:40:46 +00:00
file-open-dialog.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-open-menu.c app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-open-menu.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-save-dialog.c added boolean return value and don't hide the file dialog on success but 2004-03-10 10:21:03 +00:00
file-save-dialog.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-save-menu.c app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
file-save-menu.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
font-select.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
font-select.h app/gui/Makefile.am added font selection GUI to be used through the PDB. 2003-03-28 14:13:54 +00:00
fonts-commands.c added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
fonts-commands.h added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
fonts-menu.c added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
fonts-menu.h added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
gradient-editor-commands.c marked new strings for translation. 2004-03-04 16:10:57 +00:00
gradient-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-editor-menu.c app/widgets/widgets-types.h added new struct GimpSessionInfoAux which 2003-10-11 16:50:35 +00:00
gradient-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-select.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
gradient-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
gradients-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
gradients-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradients-menu.c Disallow editing of data objects which have no save functionality. Also 2004-02-05 22:17:14 +00:00
gradients-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
grid-dialog.c app/display/gimpdisplayshell-callbacks.c 2004-04-04 17:17:40 +00:00
grid-dialog.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
gui-types.h app/Makefile.am removed... 2002-05-05 19:17:41 +00:00
gui-vtable.c Store the zoom factor as float, not as a ratio. 2004-01-29 22:22:29 +00:00
gui-vtable.h Cleaned up the app init and exit stuff even more. Also reduces the number 2003-10-02 11:26:26 +00:00
gui.c app/Makefile.am new files implementing sanity_check() for run-time 2004-03-30 11:32:21 +00:00
gui.h app/Makefile.am new files implementing sanity_check() for run-time 2004-03-30 11:32:21 +00:00
help-commands.c stop using the deprecated GtkTipsQuery widget for context help and 2003-10-27 10:56:06 +00:00
help-commands.h app/gui/Makefile.am removed... 2002-03-20 20:08:19 +00:00
image-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
image-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
image-menu.c new callbacks to convert the current vector to the selection. 2004-03-20 16:14:49 +00:00
image-menu.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
images-commands.c app/gui/dialogs-constructors.c app/gui/images-commands.[ch] implemented 2003-11-16 12:07:03 +00:00
images-commands.h app/gui/dialogs-constructors.c app/gui/images-commands.[ch] implemented 2003-11-16 12:07:03 +00:00
images-menu.c fixed typo. 2003-09-21 19:21:12 +00:00
images-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
info-dialog.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
info-dialog.h renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
info-window.c Store the zoom factor as float, not as a ratio. 2004-01-29 22:22:29 +00:00
info-window.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
layers-commands.c Moved the calls to floating_sel_relax()/rigor() from various places to two 2004-04-13 13:54:54 +00:00
layers-commands.h Allow invoking the text tool by double clicking a text layer in the layers 2004-01-13 19:08:16 +00:00
layers-menu.c app/gui/layers-commands.c (layers_text_tool) treat modified text layers 2004-03-18 18:00:38 +00:00
layers-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
Makefile.am added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
makefile.msc updated 2004-03-07 23:13:51 +00:00
menus.c app/gui/file-open-menu.c app/gui/file-save-menu.c app/gui/image-menu.c 2004-01-20 02:37:28 +00:00
menus.h removed redundant "Gimp" parameter, cleanup. 2003-09-09 21:32:00 +00:00
module-browser.c Use the correct GTK+ APIs for setting and changing the theme: 2003-11-12 12:56:31 +00:00
module-browser.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
offset-dialog.c implementedgimp_int_option_menu_new and gimp_int_radio_group_new, which 2003-11-14 18:05:39 +00:00
offset-dialog.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +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
palette-editor-menu.c Applied patch by David Gowers (neota@softhome.net) improving the mnemonics 2003-12-29 13:09:01 +00:00
palette-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palette-import-dialog.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
palette-import-dialog.h added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. 2001-12-17 23:41:01 +00:00
palette-select.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
palette-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
palettes-commands.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
palettes-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palettes-menu.c Disallow editing of data objects which have no save functionality. Also 2004-02-05 22:17:14 +00:00
palettes-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
pattern-select.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
pattern-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
patterns-menu.c Sort the plugin menu entries with the mnemonics stripped. Avoids weird 2004-03-17 14:14:18 +00:00
patterns-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
plug-in-commands.c Update the Plugin Menu immediately after setting the last invoked plugin. 2004-03-16 01:12:21 +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
plug-in-menus.c Sort the plugin menu entries with the mnemonics stripped. Avoids weird 2004-03-17 14:14:18 +00:00
plug-in-menus.h Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
preferences-dialog.c don't show a web-browser setting on win32, it's not used there (see bug 2004-03-15 13:25:21 +00:00
preferences-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
qmask-commands.c new function which returns the image's QMask. 2004-02-19 13:18:24 +00:00
qmask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
qmask-menu.c app/display/gimpdisplayshell.c app/gui/brush-select.c 2003-08-22 01:42:57 +00:00
qmask-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
resize-dialog.c when scaling an indexed image/layer, add a label telling the user that 2004-01-18 22:50:24 +00:00
resize-dialog.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
resolution-calibrate-dialog.c removed the call to gtk_widget_get_toplevel() again. Implement the 2004-02-28 21:33:03 +00:00
resolution-calibrate-dialog.h take an optional pixbuf as eye-candy. 2002-02-28 15:11:56 +00:00
select-commands.c new callbacks to convert the current vector to the selection. 2004-03-20 16:14:49 +00:00
select-commands.h new callbacks to convert the current vector to the selection. 2004-03-20 16:14:49 +00:00
session.c app/gui/color-history.[ch] app/gui/gui.c moved the color history out of 2003-11-13 15:25:38 +00:00
session.h app/config/gimpguiconfig.[ch] added "gboolean save_accels" and "gboolean 2003-04-08 10:02:42 +00:00
splash.c moved global variables to a struct and optimized the area exposed from 2004-03-15 16:43:11 +00:00
splash.h splash image for GIMP 2.0 by Jimmac. 2004-03-15 00:17:21 +00:00
stroke-dialog.c added "gboolean use_default_values" to GimpItem::stroke(). 2004-01-22 00:16:49 +00:00
stroke-dialog.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
templates-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
templates-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
templates-menu.c app/gui/brushes-menu.c app/gui/channels-menu.c 2003-10-01 22:31:29 +00:00
templates-menu.h added gimp_list_uniquefy_name() utility function. 2003-04-06 11:21:56 +00:00
themes.c Fix undefined behaviour. Fixes crash in bringing up the Preferences dialog 2004-01-21 12:03:26 +00:00
themes.h new utility function which takes a filename relative to the theme's root 2003-11-15 17:53:18 +00:00
tips-dialog.c Some code review: 2004-02-18 13:43:50 +00:00
tips-dialog.h Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
tips-parser.c app/config/Makefile.am app/config/config-types.h new files that hold a 2003-09-15 15:24:52 +00:00
tips-parser.h updated 2002-02-25 18:36:03 +00:00
tool-options-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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
tool-options-menu.c added explicit menu branches to allow them to be translated (bug #136937). 2004-03-11 23:45:08 +00:00
tool-options-menu.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
toolbox-menu.c marked new strings for translation. 2004-03-04 16:10:57 +00:00
toolbox-menu.h app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing 2004-02-27 14:20:19 +00:00
tools-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
tools-commands.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
user-install-dialog.c unset the bg_pixmap and tweak style colors for all states. Sort of ugly 2004-04-01 18:43:42 +00:00
user-install-dialog.h Cleaned up the app init and exit stuff even more. Also reduces the number 2003-10-02 11:26:26 +00:00
vectors-commands.c app/gui/channels-commands.c app/gui/layers-commands.c 2004-03-17 16:45:18 +00:00
vectors-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
vectors-menu.c New function that appends a duplicate of the source vectors strokes to the 2003-11-07 13:20:52 +00:00
vectors-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
view-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
view-commands.h Store the zoom factor as float, not as a ratio. 2004-01-29 22:22:29 +00:00