start collecting some core stuff to libgimpim.a

Started separating crud out of drawables.

	Isolated the id system of images entirely within pdb. Even the
	window titles and menus use pointers instead of ids. Should at
	least remind people that this is a developers' version. :)
This commit is contained in:
Lauri Alanko 1998-06-30 15:31:32 +00:00
parent 5c5c73f3f5
commit ef3e162eae
109 changed files with 1777 additions and 1083 deletions

View file

@ -1156,16 +1156,18 @@ gimp_image_get_active_channels (GimpImage *gimage, GimpDrawable *drawable, int *
/* If the drawable is a channel (a saved selection, etc.)
* make sure that the alpha channel is not valid
*/
if (drawable_channel (drawable) != NULL)
if (GIMP_IS_CHANNEL (drawable))
active[ALPHA_G_PIX] = 0; /* no alpha values in channels */
else
{
/* otherwise, check whether preserve transparency is
* enabled in the layer and if the layer has alpha
*/
if ((layer = drawable_layer (drawable)))
if (layer_has_alpha (layer) && layer->preserve_trans)
active[drawable_bytes (GIMP_DRAWABLE(layer)) - 1] = 0;
if (GIMP_IS_LAYER (drawable)){
layer=GIMP_LAYER(drawable);
if (layer_has_alpha (layer) && layer->preserve_trans)
active[drawable_bytes (drawable) - 1] = 0;
}
}
}