return FALSE if the keypress event isn't handled because of a display
2005-07-19 Sven Neumann <sven@gimp.org> * app/tools/gimpvectortool.c (gimp_vector_tool_key_press): return FALSE if the keypress event isn't handled because of a display mismatch.
This commit is contained in:

committed by
Sven Neumann

parent
f56ab4b823
commit
3e74368a3b
@ -1,3 +1,9 @@
|
||||
2005-07-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpvectortool.c (gimp_vector_tool_key_press): return
|
||||
FALSE if the keypress event isn't handled because the display
|
||||
doesn't match.
|
||||
|
||||
2005-07-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/mng.c (mng_save_image): fixed signedness warnings.
|
||||
|
@ -794,6 +794,9 @@ gimp_vector_tool_key_press (GimpTool *tool,
|
||||
if (! vector_tool->vectors)
|
||||
return FALSE;
|
||||
|
||||
if (gdisp != draw_tool->gdisp)
|
||||
return FALSE;
|
||||
|
||||
shell = GIMP_DISPLAY_SHELL (draw_tool->gdisp->shell);
|
||||
|
||||
if (kevent->state & GDK_SHIFT_MASK)
|
||||
@ -802,8 +805,6 @@ gimp_vector_tool_key_press (GimpTool *tool,
|
||||
if (kevent->state & GDK_CONTROL_MASK)
|
||||
pixels = 50.0;
|
||||
|
||||
if (gdisp == draw_tool->gdisp)
|
||||
{
|
||||
switch (kevent->keyval)
|
||||
{
|
||||
case GDK_KP_Enter:
|
||||
@ -866,7 +867,6 @@ gimp_vector_tool_key_press (GimpTool *tool,
|
||||
}
|
||||
|
||||
gimp_image_flush (gdisp->gimage);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user