gimp r25601 - in trunk: . app/tools
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25601 - in trunk: . app/tools
- Date: Sat, 10 May 2008 08:34:22 +0100 (BST)
Author: martinn
Date: Sat May 10 07:34:22 2008
New Revision: 25601
URL: http://svn.gnome.org/viewvc/gimp?rev=25601&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/tools/gimpcroptool.c
Modified: trunk/app/tools/gimpcroptool.c
==============================================================================
--- trunk/app/tools/gimpcroptool.c (original)
+++ trunk/app/tools/gimpcroptool.c Sat May 10 07:34:22 2008
@@ -88,6 +88,7 @@
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 @@
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_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);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]