removed "add_alpha" parameter from gimp_item_duplicate() and
2008-01-08 Sven Neumann <sven@gimp.org> * app/core/gimpitem.[ch]: removed "add_alpha" parameter from gimp_item_duplicate() and gimp_item_convert(). This is a relict from the time when only the bottom layer was allowed to have no alpha channel. * app/actions/channels-commands.c * app/actions/layers-commands.c * app/actions/vectors-commands.c * app/core/gimpchannel.c * app/core/gimpdrawable.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-merge.c * app/core/gimpimage-quick-mask.c * app/core/gimplayer.c * app/core/gimplayermask.c * app/core/gimpselection.c * app/display/gimpdisplayshell-dnd.c * app/file/file-open.c * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c * app/text/gimptextlayer.c * app/vectors/gimpvectors.c * app/vectors/gimpvectorsmodundo.c * app/widgets/gimpchanneltreeview.c * app/widgets/gimpitemtreeview.c * app/widgets/gimplayertreeview.c * app/widgets/gimptoolbox-dnd.c * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb: changed accordingly. svn path=/trunk/; revision=24570
This commit is contained in:
committed by
Sven Neumann
parent
ef5cda6abf
commit
4aa7e67c67
@ -90,7 +90,7 @@ HELP
|
||||
code => <<'CODE'
|
||||
{
|
||||
channel_copy = GIMP_CHANNEL (gimp_item_duplicate (GIMP_ITEM (channel),
|
||||
G_TYPE_FROM_INSTANCE (channel), FALSE));
|
||||
G_TYPE_FROM_INSTANCE (channel)));
|
||||
|
||||
if (! channel_copy)
|
||||
success = FALSE;
|
||||
|
||||
@ -94,10 +94,16 @@ HELP
|
||||
code => <<'CODE'
|
||||
{
|
||||
layer_copy = GIMP_LAYER (gimp_item_duplicate (GIMP_ITEM (layer),
|
||||
G_TYPE_FROM_INSTANCE (layer),
|
||||
add_alpha));
|
||||
if (! layer_copy)
|
||||
success = FALSE;
|
||||
G_TYPE_FROM_INSTANCE (layer)));
|
||||
if (layer_copy)
|
||||
{
|
||||
if (add_alpha)
|
||||
gimp_layer_add_alpha (layer_copy);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
}
|
||||
CODE
|
||||
);
|
||||
@ -588,9 +594,9 @@ HELP
|
||||
new_type = GIMP_TYPE_LAYER;
|
||||
|
||||
if (dest_image == gimp_item_get_image (GIMP_ITEM (drawable)))
|
||||
new_item = gimp_item_duplicate (GIMP_ITEM (drawable), new_type, TRUE);
|
||||
new_item = gimp_item_duplicate (GIMP_ITEM (drawable), new_type);
|
||||
else
|
||||
new_item = gimp_item_convert (GIMP_ITEM (drawable), dest_image, new_type, TRUE);
|
||||
new_item = gimp_item_convert (GIMP_ITEM (drawable), dest_image, new_type);
|
||||
|
||||
if (new_item)
|
||||
layer_copy = GIMP_LAYER (new_item);
|
||||
|
||||
Reference in New Issue
Block a user