Commit ff997b36 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

removed "drawable" parameter because it's always the drawable the floating

2007-01-31  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-undo-push.[ch]
	(gimp_image_undo_push_fs_to_layer): removed "drawable" parameter
	because it's always the drawable the floating selection is
	attached to.

	* app/core/gimplayer-floating-sel.c (floating_sel_to_layer):
	changed accordingly.


svn path=/trunk/; revision=21827
parent 89ee6f4d
2007-01-31 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage-undo-push.[ch]
(gimp_image_undo_push_fs_to_layer): removed "drawable" parameter
because it's always the drawable the floating selection is
attached to.
* app/core/gimplayer-floating-sel.c (floating_sel_to_layer):
changed accordingly.
2007-01-31 Michael Natterer <mitch@gimp.org>
 
* app/core/Makefile.am
......@@ -829,14 +829,12 @@ static void undo_free_fs_to_layer (GimpUndo *undo,
GimpUndo *
gimp_image_undo_push_fs_to_layer (GimpImage *image,
const gchar *undo_desc,
GimpLayer *floating_layer,
GimpDrawable *drawable)
GimpLayer *floating_layer)
{
GimpUndo *new;
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
g_return_val_if_fail (GIMP_IS_LAYER (floating_layer), NULL);
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
if ((new = gimp_image_undo_push (image, GIMP_TYPE_UNDO,
sizeof (FStoLayerUndo),
......@@ -850,7 +848,7 @@ gimp_image_undo_push_fs_to_layer (GimpImage *image,
FStoLayerUndo *fsu = new->data;
fsu->floating_layer = floating_layer;
fsu->drawable = drawable;
fsu->drawable = floating_layer->fs.drawable;
return new;
}
......
......@@ -180,8 +180,7 @@ GimpUndo * gimp_image_undo_push_vectors_reposition (GimpImage *image,
GimpUndo * gimp_image_undo_push_fs_to_layer (GimpImage *image,
const gchar *undo_desc,
GimpLayer *floating_layer,
GimpDrawable *drawable);
GimpLayer *floating_layer);
GimpUndo * gimp_image_undo_push_fs_rigor (GimpImage *image,
const gchar *undo_desc,
GimpLayer *floating_layer);
......
......@@ -224,8 +224,7 @@ floating_sel_to_layer (GimpLayer *layer)
item->width,
item->height);
gimp_image_undo_push_fs_to_layer (image, NULL,
layer, layer->fs.drawable);
gimp_image_undo_push_fs_to_layer (image, NULL, layer);
/* clear the selection */
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (layer));
......
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