gimp/tools
Michael Natterer ab274e595d 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 17:27:58 +00:00
..
pdbgen Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 17:27:58 +00:00
.cvsignore tools/Makefile.am new file, a test hack for clipboard debugging. 2005-05-17 22:42:50 +00:00
Makefile.am tools/Makefile.am new file, a test hack for clipboard debugging. 2005-05-17 22:42:50 +00:00
gimp-mkenums use quotewords() from Text::ParseWords to split the trigraph. This 2005-05-22 13:12:14 +00:00
gimp-remote.c tools/gimp-remote.c converted tabs to spaces. 2006-04-12 09:45:20 +00:00
gimppath2svg.py New file: Script to convert an exported gimp-path to a simple SVG-File. 2000-10-03 21:50:09 +00:00
kernelgen.c tools/gimp-remote.c converted tabs to spaces. 2006-04-12 09:45:20 +00:00
rmshm Initial revision 1997-11-24 22:05:25 +00:00
test-clipboard.c tools/gimp-remote.c use G_OPTION_FLAG_NO_ARG where needed. 2005-09-26 10:01:22 +00:00