[gimp/metadata-browser] app: use the toggle_behavior modifier instead of GDK_CONTROL_MASK
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: use the toggle_behavior modifier instead of GDK_CONTROL_MASK
- Date: Fri, 2 Dec 2011 02:11:57 +0000 (UTC)
commit 22be9a5e7bddc54c21e335e332518d2fd02cc327
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]