app/tools/gimpperspectivetool.c app/tools/gimprotatetool.c

2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c: removed calls to
	gimp_transform_tool_expose_preview() from all
	GimpTransformTool::motion() implementations...

	* app/tools/gimptransformtool.c: ...and call it after calling
	tr_tool_class->preview().
This commit is contained in:
Michael Natterer 2004-06-14 10:48:00 +00:00 committed by Michael Natterer
parent 1082ee6b94
commit 4c68bd878a
6 changed files with 49 additions and 47 deletions

View file

@ -1,3 +1,15 @@
2004-06-14 Michael Natterer <mitch@gimp.org>
* app/tools/gimpperspectivetool.c
* app/tools/gimprotatetool.c
* app/tools/gimpscaletool.c
* app/tools/gimpsheartool.c: removed calls to
gimp_transform_tool_expose_preview() from all
GimpTransformTool::motion() implementations...
* app/tools/gimptransformtool.c: ...and call it after calling
tr_tool_class->preview().
2004-06-14 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.[ch]: remember the last used

View file

@ -119,9 +119,7 @@ gimp_perspective_tool_get_type (void)
static void
gimp_perspective_tool_class_init (GimpPerspectiveToolClass *klass)
{
GimpTransformToolClass *trans_class;
trans_class = GIMP_TRANSFORM_TOOL_CLASS (klass);
GimpTransformToolClass *trans_class = GIMP_TRANSFORM_TOOL_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
@ -209,8 +207,6 @@ gimp_perspective_tool_motion (GimpTransformTool *transform_tool,
default:
break;
}
gimp_transform_tool_expose_preview (transform_tool);
}
static void

View file

@ -270,12 +270,11 @@ gimp_rotate_tool_motion (GimpTransformTool *tr_tool,
tr_tool->cx = tr_tool->curx;
tr_tool->cy = tr_tool->cury;
gimp_transform_tool_expose_preview (tr_tool);
return;
}
options = GIMP_TRANSFORM_OPTIONS (GIMP_TOOL (tr_tool)->tool_info->tool_options);
options =
GIMP_TRANSFORM_OPTIONS (GIMP_TOOL (tr_tool)->tool_info->tool_options);
cx = tr_tool->trans_info[CENTER_X];
cy = tr_tool->trans_info[CENTER_Y];
@ -319,8 +318,6 @@ gimp_rotate_tool_motion (GimpTransformTool *tr_tool,
{
tr_tool->trans_info[ANGLE] = tr_tool->trans_info[REAL_ANGLE];
}
gimp_transform_tool_expose_preview (tr_tool);
}
static void

View file

@ -321,8 +321,6 @@ gimp_scale_tool_motion (GimpTransformTool *tr_tool,
tr_tool->trans_info[X3] += diff_x;
tr_tool->trans_info[Y3] += diff_y;
gimp_transform_tool_expose_preview (tr_tool);
return;
default:
@ -380,8 +378,6 @@ gimp_scale_tool_motion (GimpTransformTool *tr_tool,
*y1 = *y2 - dir_y * h;
*x1 = *x2 - dir_x * w;
}
gimp_transform_tool_expose_preview (tr_tool);
}
static void

View file

@ -262,8 +262,6 @@ gimp_shear_tool_motion (GimpTransformTool *tr_tool,
break;
}
}
gimp_transform_tool_expose_preview (tr_tool);
}
static void

View file

@ -497,6 +497,8 @@ gimp_transform_tool_motion (GimpTool *tool,
{
tr_tool_class->motion (tr_tool, gdisp);
gimp_transform_tool_expose_preview (tr_tool);
if (tr_tool_class->recalc)
tr_tool_class->recalc (tr_tool, gdisp);
}
@ -1435,7 +1437,9 @@ gimp_transform_tool_prepare (GimpTransformTool *tr_tool,
{
GimpTransformOptions *options;
options = GIMP_TRANSFORM_OPTIONS (GIMP_TOOL (tr_tool)->tool_info->tool_options);
options =
GIMP_TRANSFORM_OPTIONS (GIMP_TOOL (tr_tool)->tool_info->tool_options);
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (gdisp->shell),
options->show_preview);
@ -1560,4 +1564,3 @@ gimp_transform_tool_notify_preview (GimpTransformOptions *options,
options->show_preview = show_preview;
}