From f9c64f092b692083969383b407a5f9f3243d0cf4 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 8 Feb 2009 20:28:41 +0000 Subject: [PATCH] if the curve view didn't handle the key press, chain up so the normal 2009-02-08 Michael Natterer * app/tools/gimpcurvestool.c (gimp_curves_tool_key_press): if the curve view didn't handle the key press, chain up so the normal GimpImageMapTool keys for reset/cancel/ok works. svn path=/trunk/; revision=28003 --- ChangeLog | 6 ++++++ app/tools/gimpcurvestool.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b5bce8636a..e6afc6a08e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-02-08 Michael Natterer + + * app/tools/gimpcurvestool.c (gimp_curves_tool_key_press): if the + curve view didn't handle the key press, chain up so the normal + GimpImageMapTool keys for reset/cancel/ok works. + 2009-02-08 Martin Nordholts * app/tools/gimppaintoptions-gui.c: Fix stack overwrites in diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c index c6519b7397..b510b7a74d 100644 --- a/app/tools/gimpcurvestool.c +++ b/app/tools/gimpcurvestool.c @@ -299,7 +299,10 @@ gimp_curves_tool_key_press (GimpTool *tool, { GimpCurvesTool *c_tool = GIMP_CURVES_TOOL (tool); - return gtk_widget_event (c_tool->graph, (GdkEvent *) kevent); + if (gtk_widget_event (c_tool->graph, (GdkEvent *) kevent)) + return TRUE; + + return GIMP_TOOL_CLASS (parent_class)->key_press (tool, kevent, display); } static void