Disabled "Layer to Imagesize" menu on empty images and "Rotate Layer" on

channels and masks.


--Sven
This commit is contained in:
Sven Neumann
2000-01-25 20:19:59 +00:00
parent ed491085a2
commit 1a5185f087
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Tue Jan 25 21:16:57 CET 2000 Sven Neumann <sven@gimp.org>
* app/gdisplay.c: disable "Layer to Imagesize" on empty images
Tue Jan 25 20:08:35 CET 2000 Sven Neumann <sven@gimp.org>
* plug-ins/common/colorify.c: use gimp_tile_cache_ntiles ()

View File

@ -1714,7 +1714,6 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
}
SET_SENSITIVE ("Layers/Stack", gdisp);
SET_SENSITIVE ("Layers/Rotate", gdisp);
if (gdisp)
{
SET_SENSITIVE ("Layers/Stack/Previous Layer",
@ -1730,6 +1729,8 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("Layers/Stack/Layer to Bottom",
!fs && !aux && lp && alpha && lind < (lnum - 1));
}
SET_SENSITIVE ("Layers/Rotate", gdisp && !aux && !lm & lp);
SET_SENSITIVE ("Layers/Layer to Imagesize", gdisp && !aux && lp);
SET_SENSITIVE ("Layers/Anchor Layer", gdisp && fs && !aux && lp);
SET_SENSITIVE ("Layers/Merge Visible Layers...", gdisp && !fs && !aux && lp);

View File

@ -1714,7 +1714,6 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
}
SET_SENSITIVE ("Layers/Stack", gdisp);
SET_SENSITIVE ("Layers/Rotate", gdisp);
if (gdisp)
{
SET_SENSITIVE ("Layers/Stack/Previous Layer",
@ -1730,6 +1729,8 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("Layers/Stack/Layer to Bottom",
!fs && !aux && lp && alpha && lind < (lnum - 1));
}
SET_SENSITIVE ("Layers/Rotate", gdisp && !aux && !lm & lp);
SET_SENSITIVE ("Layers/Layer to Imagesize", gdisp && !aux && lp);
SET_SENSITIVE ("Layers/Anchor Layer", gdisp && fs && !aux && lp);
SET_SENSITIVE ("Layers/Merge Visible Layers...", gdisp && !fs && !aux && lp);

View File

@ -1714,7 +1714,6 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
}
SET_SENSITIVE ("Layers/Stack", gdisp);
SET_SENSITIVE ("Layers/Rotate", gdisp);
if (gdisp)
{
SET_SENSITIVE ("Layers/Stack/Previous Layer",
@ -1730,6 +1729,8 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("Layers/Stack/Layer to Bottom",
!fs && !aux && lp && alpha && lind < (lnum - 1));
}
SET_SENSITIVE ("Layers/Rotate", gdisp && !aux && !lm & lp);
SET_SENSITIVE ("Layers/Layer to Imagesize", gdisp && !aux && lp);
SET_SENSITIVE ("Layers/Anchor Layer", gdisp && fs && !aux && lp);
SET_SENSITIVE ("Layers/Merge Visible Layers...", gdisp && !fs && !aux && lp);