mirror of https://github.com/GNOME/gimp.git
Properly update the cursor.
2008-05-25 Martin Nordholts <martinn@svn.gnome.org> * app/tools/gimpfreeselecttool.c (gimp_free_select_tool_cursor_update): Properly update the cursor. svn path=/trunk/; revision=25796
This commit is contained in:
parent
021fa373c3
commit
20106d27e7
|
@ -1,3 +1,8 @@
|
|||
2008-05-25 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/tools/gimpfreeselecttool.c
|
||||
(gimp_free_select_tool_cursor_update): Properly update the cursor.
|
||||
|
||||
2008-05-25 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
Added support for supressing handles by holding Shift in the Free
|
||||
|
|
|
@ -1115,25 +1115,35 @@ gimp_free_select_tool_cursor_update (GimpTool *tool,
|
|||
{
|
||||
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
|
||||
|
||||
if (gimp_free_select_tool_is_point_grabbed (fst) &&
|
||||
! gimp_free_select_tool_should_close (fst,
|
||||
display,
|
||||
NO_CLICK_TIME_AVAILABLE,
|
||||
coords))
|
||||
{
|
||||
gimp_tool_set_cursor (tool, display,
|
||||
gimp_tool_control_get_cursor (tool->control),
|
||||
gimp_tool_control_get_tool_cursor (tool->control),
|
||||
GIMP_CURSOR_MODIFIER_MOVE);
|
||||
|
||||
}
|
||||
else
|
||||
if (tool->display == NULL)
|
||||
{
|
||||
GIMP_TOOL_CLASS (parent_class)->cursor_update (tool,
|
||||
coords,
|
||||
state,
|
||||
display);
|
||||
}
|
||||
else
|
||||
{
|
||||
GimpCursorModifier modifier;
|
||||
|
||||
if (gimp_free_select_tool_is_point_grabbed (fst) &&
|
||||
! gimp_free_select_tool_should_close (fst,
|
||||
display,
|
||||
NO_CLICK_TIME_AVAILABLE,
|
||||
coords))
|
||||
{
|
||||
modifier = GIMP_CURSOR_MODIFIER_MOVE;
|
||||
}
|
||||
else
|
||||
{
|
||||
modifier = GIMP_CURSOR_MODIFIER_NONE;
|
||||
}
|
||||
|
||||
gimp_tool_set_cursor (tool, display,
|
||||
gimp_tool_control_get_cursor (tool->control),
|
||||
gimp_tool_control_get_tool_cursor (tool->control),
|
||||
modifier);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue