app: refactor GimpCanvasTransformPreview to not know GimpTransformTool any more

Instead, add drawable, transform, x1, y1 etc. properties. This is
cleaner and has the nice side effect of not leaving artifacts, because
the changed state of the transform tool doesn't affect the extents
calculation any longer.
This commit is contained in:
Michael Natterer
2011-03-27 21:19:38 +02:00
parent 1e11a279b2
commit 8a09fd1f34
3 changed files with 243 additions and 78 deletions

View File

@ -50,7 +50,13 @@ struct _GimpCanvasTransformPreviewClass
GType gimp_canvas_transform_preview_get_type (void) G_GNUC_CONST;
GimpCanvasItem * gimp_canvas_transform_preview_new (GimpDisplayShell *shell,
GimpTransformTool *transform_tool,
GimpDrawable *drawable,
const GimpMatrix3 *transform,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gboolean perspective,
gdouble opacity);