From 970782cfef9c853b458cc8273ebd237d15c8ae2c Mon Sep 17 00:00:00 2001 From: Alexia Death Date: Thu, 6 Oct 2011 20:16:06 +0300 Subject: [PATCH] Revert "app: prevent executing rectangle tool on the creating click" This reverts commit 5a99bf4f47eb252116e965c8337beee5e6a7af8e. --- app/tools/gimprectangletool.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c index d17a340f27..8f9cbc7479 100644 --- a/app/tools/gimprectangletool.c +++ b/app/tools/gimprectangletool.c @@ -198,9 +198,6 @@ struct _GimpRectangleToolPrivate gdouble saved_y2; gint suppress_updates; - - /* Supress execute for one mouse release, needed to prevent single click create&commit */ - gboolean suppress_execute; }; @@ -910,8 +907,6 @@ gimp_rectangle_tool_button_press (GimpTool *tool, GIMP_LOG (RECTANGLE_TOOL, "coords->x = %f, coords->y = %f", coords->x, coords->y); - private->suppress_execute = FALSE; - if (display != tool->display) { if (gimp_draw_tool_is_active (draw_tool)) @@ -954,9 +949,6 @@ gimp_rectangle_tool_button_press (GimpTool *tool, /* Remember that this rectangle was created from scratch. */ private->is_new = TRUE; - /*Suppress execute on release for the creating click*/ - private->suppress_execute = TRUE; - if (gimp_rectangle_options_fixed_rule_active (options, GIMP_RECTANGLE_TOOL_FIXED_SIZE)) { @@ -1082,13 +1074,6 @@ gimp_rectangle_tool_button_release (GimpTool *tool, if (private->function == GIMP_RECTANGLE_TOOL_DEAD) break; - /* Suppresed, don't execute yet!*/ - if (private->suppress_execute) - { - private->suppress_execute = FALSE; - break; - } - if (gimp_rectangle_tool_execute (rect_tool)) gimp_rectangle_tool_halt (rect_tool); break;