[gimp] app: GimpBrightnessContrastTool: don't call gimp_tool_control_pause()/resume()



commit 28c48b185783dd5f7a54232fabfbe51cf148b854
Author: Michael Natterer <mitch gimp org>
Date:   Wed Mar 30 11:44:12 2011 +0200

    app: GimpBrightnessContrastTool: don't call gimp_tool_control_pause()/resume()
    
    It must not be called directly, and is entirely useless here anyway.

 app/tools/gimpbrightnesscontrasttool.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpbrightnesscontrasttool.c b/app/tools/gimpbrightnesscontrasttool.c
index 808897d..d8b3a79 100644
--- a/app/tools/gimpbrightnesscontrasttool.c
+++ b/app/tools/gimpbrightnesscontrasttool.c
@@ -274,8 +274,6 @@ gimp_brightness_contrast_tool_motion (GimpTool         *tool,
 {
   GimpBrightnessContrastTool *bc_tool = GIMP_BRIGHTNESS_CONTRAST_TOOL (tool);
 
-  gimp_tool_control_pause (tool->control);
-
   bc_tool->dx =   (coords->x - bc_tool->x);
   bc_tool->dy = - (coords->y - bc_tool->y);
 
@@ -283,8 +281,6 @@ gimp_brightness_contrast_tool_motion (GimpTool         *tool,
                 "brightness", CLAMP (bc_tool->dy, -127.0, 127.0) / 127.0,
                 "contrast",   CLAMP (bc_tool->dx, -127.0, 127.0) / 127.0,
                 NULL);
-
-  gimp_tool_control_resume (tool->control);
 }
 
 



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