Commit d6db9d52 authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

Add a GimpRectangleTool::cancel() implementation that updates default

2008-05-10  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimpcroptool.c: Add a GimpRectangleTool::cancel()
	implementation that updates default aspect ratio when cancelling a
	crop.

svn path=/trunk/; revision=25601
parent 51e54464
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.c: Add a GimpRectangleTool::cancel()
implementation that updates default aspect ratio when cancelling a
crop.
2008-05-09 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.[ch]: Keep track of the current image and
......
......@@ -88,6 +88,7 @@ static void gimp_crop_tool_image_changed (GimpCropTool
GimpImage *image,
GimpContext *context);
static void gimp_crop_tool_image_size_changed (GimpCropTool *crop_tool);
static void gimp_crop_tool_cancel (GimpRectangleTool *rect_tool);
G_DEFINE_TYPE_WITH_CODE (GimpCropTool, gimp_crop_tool, GIMP_TYPE_DRAW_TOOL,
......@@ -145,6 +146,7 @@ static void
gimp_crop_tool_rectangle_tool_iface_init (GimpRectangleToolInterface *iface)
{
iface->execute = gimp_crop_tool_execute;
iface->cancel = gimp_crop_tool_cancel;
}
static void
......@@ -432,3 +434,10 @@ gimp_crop_tool_image_size_changed (GimpCropTool *crop_tool)
gimp_crop_tool_update_option_defaults (crop_tool,
FALSE);
}
static void
gimp_crop_tool_cancel (GimpRectangleTool *rect_tool)
{
gimp_crop_tool_update_option_defaults (GIMP_CROP_TOOL (rect_tool),
TRUE);
}
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