if the curve view didn't handle the key press, chain up so the normal

2009-02-08  Michael Natterer  <mitch@gimp.org>

	* 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
This commit is contained in:
Michael Natterer 2009-02-08 20:28:41 +00:00 committed by Michael Natterer
parent 45aef9a352
commit f9c64f092b
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-02-08 Michael Natterer <mitch@gimp.org>
* 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 <martinn@svn.gnome.org>
* app/tools/gimppaintoptions-gui.c: Fix stack overwrites in

View File

@ -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