app: don't show a PLUS cursor modifier before starting the blend tool

We're going to use the PLUS modifier for adding gradient stops.
This commit is contained in:
Ell 2017-08-02 04:39:36 -04:00
parent 5d2555bdb5
commit 02ad016b39
1 changed files with 2 additions and 11 deletions

View File

@ -412,9 +412,8 @@ gimp_blend_tool_cursor_update (GimpTool *tool,
GdkModifierType state, GdkModifierType state,
GimpDisplay *display) GimpDisplay *display)
{ {
GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (tool); GimpImage *image = gimp_display_get_image (display);
GimpImage *image = gimp_display_get_image (display); GimpDrawable *drawable = gimp_image_get_active_drawable (image);
GimpDrawable *drawable = gimp_image_get_active_drawable (image);
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)) || if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)) ||
gimp_item_is_content_locked (GIMP_ITEM (drawable)) || gimp_item_is_content_locked (GIMP_ITEM (drawable)) ||
@ -426,14 +425,6 @@ gimp_blend_tool_cursor_update (GimpTool *tool,
GIMP_CURSOR_MODIFIER_BAD); GIMP_CURSOR_MODIFIER_BAD);
return; return;
} }
else if (display != tool->display || ! blend_tool->widget)
{
gimp_tool_set_cursor (tool, display,
gimp_tool_control_get_cursor (tool->control),
gimp_tool_control_get_tool_cursor (tool->control),
GIMP_CURSOR_MODIFIER_PLUS);
return;
}
GIMP_TOOL_CLASS (parent_class)->cursor_update (tool, coords, state, display); GIMP_TOOL_CLASS (parent_class)->cursor_update (tool, coords, state, display);
} }