[gimp] app: return TRUE after handling double and triple click tool events



commit e4daf561ac7c32922932ef36349c2122af3cbd19
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 31 10:21:55 2011 +0200

    app: return TRUE after handling double and triple click tool events
    
    so we don't redundantly update the cursor again.

 app/display/gimpdisplayshell-tool-events.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 0b2bcec..b6173a9 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -637,7 +637,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
                                               display);
           }
 
-        return_val = TRUE;
+        /*  don't update the cursor again on double click  */
+        return TRUE;
       }
       break;
 
@@ -663,7 +664,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
                                               display);
           }
 
-        return_val = TRUE;
+        /*  don't update the cursor again on triple click  */
+        return TRUE;
       }
       break;
 



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