no need to check if the layer has an alpha channel because
2004-01-10 Michael Natterer <mitch@gimp.org> * app/gui/layers-commands.c (layers_alpha_to_selection_cmd_callback): no need to check if the layer has an alpha channel because gimp_channel_select_alpha() handles layers without alpha fine: it selects everything that is opaque, which is the entire layer. * app/gui/image-menu.c (image_menu_update) * app/gui/layers-menu.c (layers_menu_update): don't make the "Alpha to Selection" items insensitive for layers without alpha.
This commit is contained in:
committed by
Michael Natterer
parent
5a85f09261
commit
15cf8858e0
@ -1606,10 +1606,10 @@ image_menu_update (GtkItemFactory *item_factory,
|
||||
SET_SENSITIVE ("/Layer/Mask/Intersect with Selection", lm && !fs && !aux);
|
||||
|
||||
SET_SENSITIVE ("/Layer/Transparency/Add Alpha Channel", lp && !aux && !fs && !lm && !alpha);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Alpha to Selection", lp && !aux && alpha);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Add to Selection", lp && !aux && alpha);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Subtract from Selection", lp && !aux && alpha);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Intersect with Selection", lp && !aux && alpha);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Alpha to Selection", lp && !aux);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Add to Selection", lp && !aux);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Subtract from Selection", lp && !aux);
|
||||
SET_SENSITIVE ("/Layer/Transparency/Intersect with Selection", lp && !aux);
|
||||
|
||||
SET_SENSITIVE ("/Layer/Transform/Flip Horizontally", lp);
|
||||
SET_SENSITIVE ("/Layer/Transform/Flip Vertically", lp);
|
||||
|
||||
Reference in New Issue
Block a user