GNOME Bugzilla – Bug 156676
"Add Layer Mask" should auto-add image alpha channel if needed
Last modified: 2004-12-22 21:47:04 UTC
"Add Layer Mask" is currently greyed out if the image has no alpha channel. Perhaps a better interface here would be to always have the "Add Layer Mask" menu option available, but if there's no alpha channel then popup a dialog saying something like "Adding a layer mask requires the image to have an alpha channel. Would you like me to add one? Yes: / No" (default yes, tickbox (unchecked) for "don't ask me again").
Why do you special-case "Add Layer Mask"? This holds true for all menu items in GIMP. Are we going to have a bug report for each of them?
I don't really see the point in popping up a dialog. If a layer mask requires an alpha channel (it is unfortunate that it does but I guess we can't change that) then the code should just add one. 2004-10-28 Sven Neumann <sven@gimp.org> * app/actions/layers-actions.c (layers_actions_update): do not set the "layers-mask-add" action insensitive if there's no alpha channel. * app/actions/layers-commands.c (layers_add_mask_response): add an alpha channel if there isn't one already. Fixes bug #156676.