Commit 60fcaa96 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/core/gimplayer.c app/actions/edit-commands.c

2008-08-07  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer.c
	* app/actions/edit-commands.c
	* app/actions/layers-commands.c
	* tools/pdbgen/pdb/layer.pdb: corrected the GimpImageType passed
	to gimp_layer_new_from_tiles().

	* app/pdb/layer-cmds.c: regenerated.


svn path=/trunk/; revision=26425
parent 7ee3d7f4
2008-08-07 Sven Neumann <sven@gimp.org>
* app/core/gimplayer.c
* app/actions/edit-commands.c
* app/actions/layers-commands.c
* tools/pdbgen/pdb/layer.pdb: corrected the GimpImageType passed
to gimp_layer_new_from_tiles().
* app/pdb/layer-cmds.c: regenerated.
2008-08-07 Sven Neumann <sven@gimp.org>
* app/actions/edit-commands.[ch]
......
......@@ -32,9 +32,9 @@
#include "core/gimpbuffer.h"
#include "core/gimpcontainer.h"
#include "core/gimpdrawable.h"
#include "core/gimplayer.h"
#include "core/gimpimage.h"
#include "core/gimpimage-undo.h"
#include "core/gimpprojection.h"
#include "vectors/gimpvectors-import.h"
......@@ -330,12 +330,11 @@ edit_paste_as_new_layer_cmd_callback (GtkAction *action,
if (buffer)
{
GimpProjection *projection = gimp_image_get_projection (image);
GimpImage *layer;
GimpLayer *layer;
layer = gimp_layer_new_from_tiles (gimp_projection_get_tiles (projection),
layer = gimp_layer_new_from_tiles (buffer->tiles,
image,
gimp_projection_get_image_type (projection),
gimp_image_base_type_with_alpha (image),
_("Clibboard"),
GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE);
g_object_unref (buffer);
......
......@@ -348,7 +348,7 @@ layers_new_from_visible_cmd_callback (GtkAction *action,
layer = gimp_layer_new_from_tiles (gimp_projection_get_tiles (projection),
image,
gimp_projection_get_image_type (projection),
gimp_image_base_type_with_alpha (image),
_("Visible"),
GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE);
gimp_image_add_layer (image, layer, -1);
......
......@@ -1003,12 +1003,12 @@ gimp_layer_new (GimpImage *image,
/**
* gimp_layer_new_from_tiles:
* @tiles: The buffer to make the new layer from.
* @tiles: The buffer to make the new layer from.
* @dest_image: The image the new layer will be added to.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
*
* Copies %tiles to a layer taking into consideration the
* possibility of transforming the contents to meet the requirements
......@@ -1042,12 +1042,12 @@ gimp_layer_new_from_tiles (TileManager *tiles,
/**
* gimp_layer_new_from_pixbuf:
* @pixbuf: The pixbuf to make the new layer from.
* @pixbuf: The pixbuf to make the new layer from.
* @dest_image: The image the new layer will be added to.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
*
* Copies %pixbuf to a layer taking into consideration the
* possibility of transforming the contents to meet the requirements
......@@ -1082,12 +1082,12 @@ gimp_layer_new_from_pixbuf (GdkPixbuf *pixbuf,
/**
* gimp_layer_new_from_region:
* @region: A readable pixel region.
* @region: A readable pixel region.
* @dest_image: The image the new layer will be added to.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
* @type: The #GimpImageType of the new layer.
* @name: The new layer's name.
* @opacity: The new layer's opacity.
* @mode: The new layer's mode.
*
* Copies %region to a layer taking into consideration the
* possibility of transforming the contents to meet the requirements
......
......@@ -114,7 +114,7 @@ layer_new_from_visible_invoker (GimpProcedure *procedure,
layer = gimp_layer_new_from_tiles (gimp_projection_get_tiles (projection),
dest_image,
gimp_projection_get_image_type (projection),
gimp_image_base_type_with_alpha (dest_image),
name,
GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE);
}
......
......@@ -99,7 +99,7 @@ HELP
layer = gimp_layer_new_from_tiles (gimp_projection_get_tiles (projection),
dest_image,
gimp_projection_get_image_type (projection),
gimp_image_base_type_with_alpha (dest_image),
name,
GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment