gimp/app
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
..
actions Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
base app/base/temp-buf.c (temp_buf_get_memsize) Add some casts to gsize for 2004-02-14 01:12:19 +00:00
composite new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
config new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
core Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
dialogs removed "Default" prefix from "Navigation Preview Size" label again. 2004-02-10 20:59:34 +00:00
display Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
file app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
gui Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
menus Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
paint app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
paint-funcs app/core/gimpimage-undo-push.c (undo_pop_layer) (undo_push_layer) ifdef'ed 2004-02-09 00:17:13 +00:00
pdb added new function gimp_viewable_get_dummy_preview() which currently 2004-02-10 15:33:37 +00:00
plug-in app/plug-in/plug-ins.c (plug_ins_init) changed g_warning() to g_printerr() 2004-02-11 13:18:51 +00:00
text app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
tools make a similar fix as in my last commit for snapping the guides. 2004-02-13 14:04:41 +00:00
vectors added progress callback pointers to gimp_item_scale() and its variants. 2004-02-09 00:09:20 +00:00
widgets Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
xcf Fixed lots of QuickMask brokenness by letting the image adjust its 2004-02-14 15:37:23 +00:00
.cvsignore Makefile.am configure.in gimp-1.3.pc.in added pkg-config files for 2001-11-25 00:19:38 +00:00
Makefile.am some updates to the gimp-console rules so that it fails less badly. 2004-02-09 14:14:08 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c app/app_procs.c app/errors.c app/main.c app/config/gimpconfigwriter.c 2004-01-23 17:24:44 +00:00
app_procs.h added enum GimpPDBCompatMode which can be one of { OFF, ON, WARN }. 2003-12-05 17:08:35 +00:00
batch.c a tiny change I forgot... 2003-11-30 16:08:46 +00:00
batch.h renamed batch_init() to batch_run(). Install an Gimp::exit handler while 2003-11-30 14:44:13 +00:00
errors.c Added a conditional definition of the preprocessor symbol GIMP_UNSTABLE if 2004-02-05 00:34:50 +00:00
errors.h unref the gimp object after dumping the configuration as a test for 2003-11-17 00:17:01 +00:00
gimp-intl.h Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimp.rc Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
main.c app/app_procs.c app/errors.c app/main.c app/config/gimpconfigwriter.c 2004-01-23 17:24:44 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
units.c libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files 2003-11-15 22:53:28 +00:00
units.h libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files 2003-11-15 22:53:28 +00:00
wilber.ico Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00