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
@ -114,8 +114,7 @@ gimp_image_duplicate (GimpImage *image)
|
||||
|
||||
new_layer = GIMP_LAYER (gimp_item_convert (GIMP_ITEM (layer),
|
||||
new_image,
|
||||
G_TYPE_FROM_INSTANCE (layer),
|
||||
FALSE));
|
||||
G_TYPE_FROM_INSTANCE (layer)));
|
||||
|
||||
/* Make sure the copied layer doesn't say: "<old layer> copy" */
|
||||
gimp_object_set_name (GIMP_OBJECT (new_layer),
|
||||
@ -149,11 +148,9 @@ gimp_image_duplicate (GimpImage *image)
|
||||
GimpChannel *channel = list->data;
|
||||
GimpChannel *new_channel;
|
||||
|
||||
new_channel =
|
||||
GIMP_CHANNEL (gimp_item_convert (GIMP_ITEM (channel),
|
||||
new_image,
|
||||
G_TYPE_FROM_INSTANCE (channel),
|
||||
FALSE));
|
||||
new_channel = GIMP_CHANNEL (gimp_item_convert (GIMP_ITEM (channel),
|
||||
new_image,
|
||||
G_TYPE_FROM_INSTANCE (channel)));
|
||||
|
||||
/* Make sure the copied channel doesn't say: "<old channel> copy" */
|
||||
gimp_object_set_name (GIMP_OBJECT (new_channel),
|
||||
@ -176,11 +173,9 @@ gimp_image_duplicate (GimpImage *image)
|
||||
GimpVectors *vectors = list->data;
|
||||
GimpVectors *new_vectors;
|
||||
|
||||
new_vectors =
|
||||
GIMP_VECTORS (gimp_item_convert (GIMP_ITEM (vectors),
|
||||
new_image,
|
||||
G_TYPE_FROM_INSTANCE (vectors),
|
||||
FALSE));
|
||||
new_vectors = GIMP_VECTORS (gimp_item_convert (GIMP_ITEM (vectors),
|
||||
new_image,
|
||||
G_TYPE_FROM_INSTANCE (vectors)));
|
||||
|
||||
/* Make sure the copied vectors doesn't say: "<old vectors> copy" */
|
||||
gimp_object_set_name (GIMP_OBJECT (new_vectors),
|
||||
|
Reference in New Issue
Block a user