Gimp/app/menus
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
..
file-open-menu.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
file-open-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
file-save-menu.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
file-save-menu.h removed. 2003-01-31 11:54:16 +00:00
image-menu.c Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
image-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +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
plug-in-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
plug-in-menus.h Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
tool-options-menu.c app/gui/layers-menu.c app/gui/patterns-menu.c app/gui/tool-options-menu.c 2004-01-08 20:00:09 +00:00
tool-options-menu.h new function for stuff which needs to be done once, not on every 2003-09-29 22:23:44 +00:00
toolbox-menu.c removed trailing whitespace. 2004-02-05 12:52:35 +00:00
toolbox-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00