[gimp/soc-2011-warp: 13/72] gimpwarptool: add logic to commit the transformation
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-warp: 13/72] gimpwarptool: add logic to commit the transformation
- Date: Wed, 14 Mar 2012 12:18:27 +0000 (UTC)
commit 364938e7a418c73888d9dd3fd5208ec9f1fb6c75
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 f53c356..5092c50 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -293,8 +293,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]