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:
Michael Natterer
2004-01-10 15:32:51 +00:00
committed by Michael Natterer
parent 5a85f09261
commit 15cf8858e0
6 changed files with 27 additions and 21 deletions

View File

@ -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);