[gimp/wip/gradient-edit: 36/52] app: don't show a PLUS cursor modifier before starting the blend tool
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/gradient-edit: 36/52] app: don't show a PLUS cursor modifier before starting the blend tool
- Date: Mon, 9 Oct 2017 15:46:31 +0000 (UTC)
commit cba5c7158036e7c7435f4214aa3c076ee2ad5722
Author: Ell <ell_se yahoo com>
Date: Wed Aug 2 04:39:36 2017 -0400
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.
app/tools/gimpblendtool.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c
index c161e1a..35b8363 100644
--- a/app/tools/gimpblendtool.c
+++ b/app/tools/gimpblendtool.c
@@ -412,9 +412,8 @@ gimp_blend_tool_cursor_update (GimpTool *tool,
GdkModifierType state,
GimpDisplay *display)
{
- GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (tool);
- GimpImage *image = gimp_display_get_image (display);
- GimpDrawable *drawable = gimp_image_get_active_drawable (image);
+ GimpImage *image = gimp_display_get_image (display);
+ GimpDrawable *drawable = gimp_image_get_active_drawable (image);
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)) ||
gimp_item_is_content_locked (GIMP_ITEM (drawable)) ||
@@ -426,14 +425,6 @@ gimp_blend_tool_cursor_update (GimpTool *tool,
GIMP_CURSOR_MODIFIER_BAD);
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]