gimp/libgimpbase
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
..
.cvsignore Additions for Win32: Use -no-undefined. Use the gimpbase.def file. Produce 2002-03-29 23:10:18 +00:00
Makefile.am moved GIMP_PARAM defines from here ... 2006-01-30 16:10:56 +00:00
gimpbase-private.c GimpUnitVTable -> GimpUnitVtable 2005-09-10 12:21:37 +00:00
gimpbase-private.h GimpUnitVTable -> GimpUnitVtable 2005-09-10 12:21:37 +00:00
gimpbase.def app/plug-in/plug-in-enums.h moved GimpRunMode enum to libgimpbase. 2006-04-06 10:16:39 +00:00
gimpbase.h libgimpbase/Makefile.am removed these two files again. 2005-01-25 23:44:05 +00:00
gimpbaseenums.c Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
gimpbaseenums.h Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
gimpbasetypes.c libgimpbase/Makefile.am removed these two files again. 2005-01-25 23:44:05 +00:00
gimpbasetypes.h moved GIMP_PARAM defines from here ... 2006-01-30 16:10:56 +00:00
gimpchecks.c libgimpbase/gimpchecks.h moved check size and check color defines. It 2004-09-03 11:18:56 +00:00
gimpchecks.h libgimp/gimpunitcache.h libgimpbase/gimpchecks.h 2004-11-04 10:51:55 +00:00
gimpcpuaccel.c app/base/cpu-accel.c app/composite/gimp-composite-3dnow.h 2006-02-28 06:34:16 +00:00
gimpcpuaccel.h detect SSE3. 2005-06-07 07:10:22 +00:00
gimpdatafiles.c converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpdatafiles.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpenv.c libgimpbase/gimpenv.c (gimp_toplevel_directory) plugged memory leaks. 2005-11-16 18:07:44 +00:00
gimpenv.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimplimits.h libgimp/gimpunitcache.h libgimpbase/gimpchecks.h 2004-11-04 10:51:55 +00:00
gimpmemsize.c use dngettext() for plural form. 2005-11-02 15:19:15 +00:00
gimpmemsize.h libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimpparam.h moved GIMP_PARAM defines from here ... 2006-01-30 16:10:56 +00:00
gimpparasite.c converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpparasite.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpparasiteio.c converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpparasiteio.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpprotocol.c converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpprotocol.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpreloc.c libgimpbase/Makefile.am libgimpbase/libgimpbase-docs.sgml do not generate 2005-12-14 13:36:12 +00:00
gimpreloc.h Added support for binary relocation by means of binreloc, largely based on 2005-11-06 01:06:41 +00:00
gimpsignal.c converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpsignal.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpunit.c libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimpunit.h libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimputils.c strlen != sizeof 2006-04-21 09:14:55 +00:00
gimputils.h sync parameter name with implementation to please gtk-doc. 2005-08-25 16:19:54 +00:00
gimpwin32-io.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
gimpwire.c sprinkled a few G_UNLIKELY() macros to help the compiler. 2006-03-30 08:43:34 +00:00
gimpwire.h converted tabs to spaces. 2006-04-12 10:53:28 +00:00
makefile.msc updated 2006-02-26 19:00:33 +00:00