gimp/app
Michael Natterer 1217dc8d07 Allow to initialize a new layer mask with any of the image's channels.
2006-05-14  Michael Natterer  <mitch@gimp.org>

	Allow to initialize a new layer mask with any of the image's
	channels. Fixes bug #310207.

	* libgimpbase/gimpbaseenums.h (enum GimpAddMaskType): added
	value GIMP_ADD_CHANNEL_MASK.

	* libgimpbase/gimpbaseenums.c
	* tools/pdbgen/enums.pl: regenerated.

	* app/core/gimplayer.[ch] (gimp_layer_create_mask): added
	GimpChannel* parameter. Hacked the GIMP_ADD_SELECTION_MASK code a
	bit so it can handle GIMP_ADD_CHANNEL_MASK too. Cleaned up the
	function a bit.

	* app/dialogs/layer-add-mask-dialog.[ch]: added a menu of the
	image's channels.

	* app/actions/layers-commands.c (layers_add_mask_response): pass
	the channel selected in the menu to gimp_layer_create_mask().

	* tools/pdbgen/pdb/layer.pdb (layer_create_mask): use the image's
	active channel when GIMP_ADD_CHANNEL_MASK is passed. Fail if there
	is no active channel.

	* app/pdb/layer_cmds.c: regenerated.
2006-05-14 16:24:31 +00:00
..
actions Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
base cosmetics (should have gone into the last commit) 2006-04-26 14:19:08 +00:00
composite applied patch from Mukund that replaces remaining movntq instructions in 2006-05-10 09:35:33 +00:00
config make test-config link again. Fixes bug #340601. 2006-05-11 22:51:27 +00:00
core Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
dialogs Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
display app/core/gimpimage.c (gimp_image_new) app/core/gimpitem.c 2006-05-09 19:15:49 +00:00
file app/plug-in/Makefile.am app/plug-in/plug-in-types.h new object which keeps 2006-04-28 22:26:51 +00:00
gui don't #include "pdb/gimppluginprocedure.h". 2006-05-09 11:05:44 +00:00
menus Applied modified patch from Michael J. Hammel which allows to remove all 2006-05-11 12:29:57 +00:00
paint M ChangeLog M app/paint/gimpconvolve.c M app/paint-funcs/paint-funcs.c M 2006-04-20 07:15:15 +00:00
paint-funcs code cleanup, moved variables into local scopes, added const qualifiers. 2006-04-26 09:22:34 +00:00
pdb Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
plug-in updated dont include "config/gimpbaseconfig.c", it gives an redefinition 2006-05-13 17:05:15 +00:00
text added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct 2006-04-27 15:19:59 +00:00
tools find a suitable display and fully set up the tool (just as the vector tool 2006-05-13 22:55:22 +00:00
vectors did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
widgets Added some new text layer actions and menu items (bug #316299). 2006-05-13 19:48:18 +00:00
xcf added "gboolean none_ok" members to GimpParamSpecImageID, 2006-05-06 19:03:03 +00:00
.cvsignore
about.h use U+00A9 COPYRIGHT SIGN. 2006-03-01 08:06:08 +00:00
airbrush.c
app_procs.c added a "verbose" parameter. 2006-05-04 13:37:41 +00:00
app_procs.h
batch.c app/pdb/Makefile.am app/pdb/pdb-types.h new object GimpPDB which keeps all 2006-04-26 09:13:47 +00:00
batch.h
errors.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
errors.h
fileicon.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00
gimp-intl.h
gimp.rc
gimpcore.def updated dont include "config/gimpbaseconfig.c", it gives an redefinition 2006-05-13 17:05:15 +00:00
main.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
Makefile.am changed order of subdirs to match the bottom-up module dependency order 2006-04-27 09:30:55 +00:00
makefile.msc updated 2005-09-25 19:30:55 +00:00
paint_core.h
paint_options.h
plug_in_cmds.c
sanity.c HACKING document the changed dependencies. 2005-12-28 21:36:03 +00:00
sanity.h
transform_core.c
units.c app/units.c converted tabs to spaces. 2006-04-11 12:54:09 +00:00
units.h
wilber.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00