app/tools/gimptransformtool.c removed old path undo stuff.

2003-05-18  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.c
	* app/tools/gimptransformtool-undo.[ch]: removed old path undo stuff.
This commit is contained in:
Michael Natterer 2003-05-18 10:44:09 +00:00 committed by Michael Natterer
parent 4624d49662
commit c44bf94c5a
4 changed files with 8 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2003-05-18 Michael Natterer <mitch@gimp.org>
* app/tools/gimptransformtool.c
* app/tools/gimptransformtool-undo.[ch]: removed old path undo stuff.
2003-05-18 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c (gimp_layer_new_from_drawable): call

View File

@ -33,8 +33,6 @@
#include "gimptransformtool-undo.h"
#include "tool_manager.h"
#include "path_transform.h"
#include "gimp-intl.h"
@ -51,7 +49,6 @@ struct _TransformUndo
TransInfo trans_info;
TileManager *original;
gpointer path_undo;
};
static gboolean undo_pop_transform (GimpUndo *undo,
@ -66,8 +63,7 @@ gimp_transform_tool_push_undo (GimpImage *gimage,
gint tool_ID,
GType tool_type,
gdouble *trans_info,
TileManager *original,
GSList *path_undo)
TileManager *original)
{
GimpUndo *new;
@ -91,7 +87,6 @@ gimp_transform_tool_push_undo (GimpImage *gimage,
tu->trans_info[i] = trans_info[i];
tu->original = original;
tu->path_undo = path_undo;
return TRUE;
}
@ -116,8 +111,6 @@ undo_pop_transform (GimpUndo *undo,
tt = GIMP_TRANSFORM_TOOL (active_tool);
tu = (TransformUndo *) undo->data;
path_transform_do_undo (undo->gimage, tu->path_undo);
/* only pop if the active tool is the tool that pushed this undo */
if (tu->tool_ID == active_tool->ID)
{
@ -163,7 +156,5 @@ undo_free_transform (GimpUndo *undo,
if (tu->original)
tile_manager_destroy (tu->original);
path_transform_free_undo (tu->path_undo);
g_free (tu);
}

View File

@ -25,8 +25,7 @@ gboolean gimp_transform_tool_push_undo (GimpImage *gimage,
gint tool_ID,
GType tool_type,
gdouble *trans_info,
TileManager *original,
GSList *path_undo);
TileManager *original);
#endif /* __GIMP_TRANSFORM_TOOL_UNDO_H__ */

View File

@ -828,7 +828,6 @@ gimp_transform_tool_doit (GimpTransformTool *tr_tool,
{
GimpTool *tool;
TileManager *new_tiles;
GSList *path_undo;
gboolean new_layer;
gimp_set_busy (gdisp->gimage->gimp);
@ -861,8 +860,6 @@ gimp_transform_tool_doit (GimpTransformTool *tr_tool,
tr_tool->original = gimp_drawable_transform_cut (tool->drawable,
&new_layer);
path_undo = path_transform_start_undo (gdisp->gimage);
/* Send the request for the transformation to the tool...
*/
new_tiles = GIMP_TRANSFORM_TOOL_GET_CLASS (tr_tool)->transform (tr_tool,
@ -890,8 +887,7 @@ gimp_transform_tool_doit (GimpTransformTool *tr_tool,
tool->ID,
G_TYPE_FROM_INSTANCE (tool),
tr_tool->old_trans_info,
NULL,
path_undo);
NULL);
}
/* push the undo group end */