Gimp/app/actions
Michael Natterer 25b81b1570 Fixed lots of QuickMask brokenness by letting the image adjust its
2004-02-14  Michael Natterer  <mitch@gimp.org>

	Fixed lots of QuickMask brokenness by letting the image adjust
	its qmask_state automatically:

	* app/core/gimpimage-qmask.h: #define GIMP_IMAGE_QMASK_NAME "Qmask".
	Use the define in all files below.

	* app/core/gimpimage.[ch]: split gimp_image_drawable_add,_remove()
	into separate handlers for layers and channels. Added a
	"name_changed" handler for all channels. In the channel "add",
	"remove" and "name_changed" handlers, check if it was a channel
	named "Qmask" that was added, removed or renamed and call
	gimp_image_set_qmask_state() accordingly.

	* app/core/core-enums.[ch]
	* app/core/gimpimage-undo-push.[ch]
	* app/core/gimpundo.c: removed all Qmask undo code because the image
	does the right thing without undo interaction now.

	* app/core/gimpimage-qmask.c (gimp_image_set_qmask_state): set
	gimage->qmask_state early so we can return early when called
	recursively. Removed calls to gimp_image_undo_push_image_qmask().
	Returned "removed" callback (it was utterly broken the way it was
	implemented).

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_qmask_toggled): check if the image's
	qmask state needs to be changed before changing it.

	* app/xcf/xcf-load.c (xcf_load_channel): removed code which
	recognized the qmask. GimpImage does this automatically now.

	* app/gui/qmask-commands.c: cleanup.

	* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):
	destroy the "/Select/By Color" and "/Select/Toggle QuickMask" menu
	items.

	* app/widgets/image-menu.c (image_menu_update): changed accordingly.
2004-02-14 15:37:23 +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
channels-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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
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 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 removed trailing whitespace. 2004-02-05 12:52:35 +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
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
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 Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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
file-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +00:00
file-commands.h app/gui/file-commands.[ch] app/gui/file-dialog-utils.[ch] 2003-11-09 22:05:37 +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
gradient-editor-commands.c applied patch from Shlomi Fish that fixes an obvious cut'n'paste bug in 2003-12-20 17:49:50 +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 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
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
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
layers-commands.c added progress callback pointers to gimp_item_scale() and its variants. 2004-02-09 00:09:20 +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
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 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
plug-in-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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 Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +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 Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +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 Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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 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
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
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
vectors-commands.c Use the global <Image> accel_group in all docks except the toolbox (the 2004-01-31 20:23:53 +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
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