CVSROOT: /cvs/gnome Module name: gimp Changes by: mitch 06/05/14 12:24:31
Modified files: . : ChangeLog app/core : gimplayer.c gimplayer.h app/dialogs : layer-add-mask-dialog.c layer-add-mask-dialog.h app/actions : layers-commands.c app/pdb : layer_cmds.c tools/pdbgen/pdb: layer.pdb libgimpbase : gimpbaseenums.c gimpbaseenums.h Log message: 2006-05-14 Michael Natterer <[EMAIL PROTECTED]> Allow to initialize a new layer mask with any of the image's channels. Fixes bug #310207 [http://bugzilla.gnome.org/show_bug.cgi?id=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. URL : http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gimp&who=mitch&date=explicit&mindate=2006-05-14%2012:23&maxdate=2006-05-14%2012:25 _______________________________________________ cvs-commits-list mailing list cvs-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/cvs-commits-list