Gimp/app/xcf
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
..
.cvsignore new directory app/xcf/ 2001-07-03 18:38:56 +00:00
Makefile.am app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
xcf-load.c Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
xcf-load.h app/core/Makefile.am app/core/core-types.h added an "application object" 2001-07-04 19:31:35 +00:00
xcf-private.h added "GimpTattoo tattoo_state" to the XcfInfo struct. 2003-12-06 15:53:26 +00:00
xcf-read.c new function which takes any string and returns UTF-8 (it returns 2003-10-16 12:24:58 +00:00
xcf-read.h new directory app/xcf/ 2001-07-03 18:38:56 +00:00
xcf-save.c store the correct offset of the floating selection's drawable. This bug 2004-01-26 15:20:15 +00:00
xcf-save.h new directory app/xcf/ 2001-07-03 18:38:56 +00:00
xcf-seek.c app/xcf/xcf-load.c app/xcf/xcf-read.c app/xcf/xcf-save.c 2003-09-10 10:40:57 +00:00
xcf-seek.h app/xcf/xcf-write.[ch] app/xcf/xcf-save.c ported the fix for bug #101340 2002-12-20 06:26:34 +00:00
xcf-write.c app/xcf/xcf-load.c app/xcf/xcf-read.c app/xcf/xcf-save.c 2003-09-10 10:40:57 +00:00
xcf-write.h app/xcf/xcf-write.[ch] app/xcf/xcf-save.c ported the fix for bug #101340 2002-12-20 06:26:34 +00:00
xcf.c include "libgimpbase/gimpbase.h" where needed; removed now unnecessary 2004-01-19 01:54:11 +00:00
xcf.h app/Makefile.am removed. 2001-10-18 17:27:36 +00:00