[gimp] app: use the toggle_behavior modifier instead of GDK_CONTROL_MASK



commit 59f4396c7ba110b4dbe3ea5845f67df4d292a8d4
Author: Michael Natterer <mitch gimp org>
Date:   Thu Oct 6 21:05:12 2011 +0200

    app: use the toggle_behavior modifier instead of GDK_CONTROL_MASK
    
    to switch between dragging a guide or a sample point from a ruler.

 app/display/gimpdisplayshell-tool-events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 02602ed..0108e5c 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -1250,7 +1250,7 @@ gimp_display_shell_ruler_button_press (GtkWidget        *widget,
       gboolean  sample_point;
 
       active_tool  = tool_manager_get_active (display->gimp);
-      sample_point = (event->state & GDK_CONTROL_MASK);
+      sample_point = (event->state & gimp_get_toggle_behavior_mask ());
 
       if (! ((sample_point && (GIMP_IS_COLOR_TOOL (active_tool) &&
                                ! GIMP_IS_IMAGE_MAP_TOOL (active_tool) &&



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