Disabled "Layer to Imagesize" menu on empty images and "Rotate Layer" on
channels and masks. --Sven
This commit is contained in:
@ -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 ()
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user