app/layer.c Turn off a layer's bounding box when it is deselected.

Mon Feb  8 19:17:58 GMT 1999 Adam D. Moss <adam@gimp.org>

	* app/layer.c
	* app/selection.c: Turn off a layer's bounding box when
	it is deselected.
This commit is contained in:
GMT 1999 Adam D. Moss 1999-02-08 19:22:46 +00:00 committed by Adam D. Moss
parent 43ebe17b0e
commit 3c8da4f232
7 changed files with 33 additions and 18 deletions

View File

@ -1,3 +1,9 @@
Mon Feb 8 19:17:58 GMT 1999 Adam D. Moss <adam@gimp.org>
* app/layer.c
* app/selection.c: Turn off a layer's bounding box when
it is deselected.
Mon Feb 8 12:12:18 CST 1999 Shawn T. Amundson <amundson@gimp.org>
* app/bezier_select.c: applied patch from Shuji Narazaki

View File

@ -953,6 +953,9 @@ layer_invalidate_boundary (layer)
/* Turn the current selection off */
gdisplays_selection_visibility (gimage, SelectionOff);
/* clear the affected region surrounding the layer */
gdisplays_selection_visibility (gimage, SelectionLayerOff);
mask = gimage_get_mask (gimage);
/* Only bother with the bounds if there is a selection */
@ -964,10 +967,6 @@ layer_invalidate_boundary (layer)
if (layer_is_floating_sel(layer))
floating_sel_invalidate(layer);
/* clear the affected region surrounding the layer */
/* gdisplays_selection_visibility (GIMP_DRAWABLE(layer)->gimage,
SelectionLayerOff); */
}

View File

@ -654,9 +654,13 @@ selection_invis (Selection *select)
/* Find the bounds of the selection */
if (gdisplay_mask_bounds (gdisp, &x1, &y1, &x2, &y2))
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
{
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
}
else
selection_start (select, TRUE);
{
selection_start (select, TRUE);
}
}

View File

@ -654,9 +654,13 @@ selection_invis (Selection *select)
/* Find the bounds of the selection */
if (gdisplay_mask_bounds (gdisp, &x1, &y1, &x2, &y2))
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
{
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
}
else
selection_start (select, TRUE);
{
selection_start (select, TRUE);
}
}

View File

@ -953,6 +953,9 @@ layer_invalidate_boundary (layer)
/* Turn the current selection off */
gdisplays_selection_visibility (gimage, SelectionOff);
/* clear the affected region surrounding the layer */
gdisplays_selection_visibility (gimage, SelectionLayerOff);
mask = gimage_get_mask (gimage);
/* Only bother with the bounds if there is a selection */
@ -964,10 +967,6 @@ layer_invalidate_boundary (layer)
if (layer_is_floating_sel(layer))
floating_sel_invalidate(layer);
/* clear the affected region surrounding the layer */
/* gdisplays_selection_visibility (GIMP_DRAWABLE(layer)->gimage,
SelectionLayerOff); */
}

View File

@ -953,6 +953,9 @@ layer_invalidate_boundary (layer)
/* Turn the current selection off */
gdisplays_selection_visibility (gimage, SelectionOff);
/* clear the affected region surrounding the layer */
gdisplays_selection_visibility (gimage, SelectionLayerOff);
mask = gimage_get_mask (gimage);
/* Only bother with the bounds if there is a selection */
@ -964,10 +967,6 @@ layer_invalidate_boundary (layer)
if (layer_is_floating_sel(layer))
floating_sel_invalidate(layer);
/* clear the affected region surrounding the layer */
/* gdisplays_selection_visibility (GIMP_DRAWABLE(layer)->gimage,
SelectionLayerOff); */
}

View File

@ -654,9 +654,13 @@ selection_invis (Selection *select)
/* Find the bounds of the selection */
if (gdisplay_mask_bounds (gdisp, &x1, &y1, &x2, &y2))
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
{
gdisplay_expose_area (gdisp, x1, y1, (x2 - x1), (y2 - y1));
}
else
selection_start (select, TRUE);
{
selection_start (select, TRUE);
}
}