also set the mode of the new layer to NORMAL and its opacity to OPAQUE.

2007-05-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_drop_drawable): also
	set the mode of the new layer to NORMAL and its opacity to OPAQUE.


svn path=/trunk/; revision=22647
This commit is contained in:
Michael Natterer 2007-05-29 09:03:16 +00:00 committed by Michael Natterer
parent c705096434
commit 18d586fb1d
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-05-29 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_drop_drawable): also
set the mode of the new layer to NORMAL and its opacity to OPAQUE.
2007-05-29 Mukund Sivaraman <muks@mukund.org>
* plug-ins/imagemap/imap_object.c: Use C89 declarations.

View File

@ -222,6 +222,8 @@ gimp_toolbox_drop_drawable (GtkWidget *widget,
gimp_item_offsets (GIMP_ITEM (new_layer), &off_x, &off_y);
gimp_item_translate (GIMP_ITEM (new_layer), -off_x, -off_y, FALSE);
gimp_item_set_visible (GIMP_ITEM (new_layer), TRUE, FALSE);
gimp_layer_set_mode (new_layer, GIMP_NORMAL_MODE, FALSE);
gimp_layer_set_opacity (new_layer, GIMP_OPACITY_OPAQUE, FALSE);
gimp_image_add_layer (new_image, new_layer, 0);