[gimp/metadata-browser] Revert "app: prevent executing rectangle tool on the creating click"



commit ed4643d21787014397226c1659464d1ef905a96b
Author: Alexia Death <alexiadeath gmail com>
Date:   Thu Oct 6 20:16:06 2011 +0300

    Revert "app: prevent executing rectangle tool on the creating click"
    
    This reverts commit 5a99bf4f47eb252116e965c8337beee5e6a7af8e.

 app/tools/gimprectangletool.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c
index d17a340..8f9cbc7 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]