emit "update" signals from the drawable before and after setting tiles and

2004-03-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_set_tiles_full): emit
	"update" signals from the drawable before and after setting tiles
	and offsets.

	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste)
	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod, _channel_mod)
	* app/text/gimptextlayer.c (gimp_text_layer_render)
	* app/tools/gimptransformtool.c (gimp_transform_tool_doit):
	removed calls to gimp_drawable_update().

	* app/core/gimpdrawable-offset.c (gimp_drawable_offset): don't
	push an undo step before calling gimp_drawable_set_tiles()
	but simply pass push_undo == TRUE and the undo_desc.
This commit is contained in:
Michael Natterer
2004-03-15 20:05:31 +00:00
committed by Michael Natterer
parent 1ef5fa93ca
commit 59b77c35c2
8 changed files with 45 additions and 121 deletions

View File

@ -1098,12 +1098,6 @@ gimp_drawable_transform_paste (GimpDrawable *drawable,
if (floating_layer)
floating_sel_relax (floating_layer, TRUE);
gimp_image_update (gimage,
GIMP_ITEM (drawable)->offset_x,
GIMP_ITEM (drawable)->offset_y,
GIMP_ITEM (drawable)->width,
GIMP_ITEM (drawable)->height);
tile_manager_get_offsets (tiles, &offset_x, &offset_y);
gimp_drawable_set_tiles_full (drawable, TRUE, undo_desc,
@ -1112,11 +1106,6 @@ gimp_drawable_transform_paste (GimpDrawable *drawable,
if (floating_layer)
floating_sel_rigor (floating_layer, TRUE);
gimp_drawable_update (drawable,
0, 0,
gimp_item_width (GIMP_ITEM (drawable)),
gimp_item_height (GIMP_ITEM (drawable)));
}
return TRUE;