[gimp] gimpwarptool: add logic to commit the transformation
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] gimpwarptool: add logic to commit the transformation
- Date: Tue, 21 May 2013 21:45:53 +0000 (UTC)
commit ab42a60998db98d0028be9509011fd449adb69cd
Author: Michael Muré <batolettre gmail com>
Date: Sat Jun 4 01:38:50 2011 +0200
gimpwarptool: add logic to commit the transformation
app/tools/gimpwarptool.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 27b539d..eaee626 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -291,8 +291,21 @@ gimp_warp_tool_key_press (GimpTool *tool,
{
case GDK_KEY_BackSpace:
case GDK_KEY_Return:
+ return TRUE;
+
case GDK_KEY_KP_Enter:
case GDK_KEY_ISO_Enter:
+ gimp_tool_control_set_preserve (tool->control, TRUE);
+
+ gimp_image_map_commit (wt->image_map);
+ g_object_unref (wt->image_map);
+ wt->image_map = NULL;
+
+ gimp_tool_control_set_preserve (tool->control, FALSE);
+
+ gimp_image_flush (gimp_display_get_image (display));
+
+ gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display);
return TRUE;
case GDK_KEY_Escape:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]