[gimp] app: enable cairo drawing in the blend tool
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: enable cairo drawing in the blend tool
- Date: Wed, 22 Sep 2010 20:26:12 +0000 (UTC)
commit 919b3d83b832f30a0ebe195fccb96ad0470cea71
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 22 22:25:37 2010 +0200
app: enable cairo drawing in the blend tool
and reorder drawing functions so the handles are on top of the line.
app/tools/gimpblendtool.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c
index a4736b5..23a0879 100644
--- a/app/tools/gimpblendtool.c
+++ b/app/tools/gimpblendtool.c
@@ -146,6 +146,8 @@ gimp_blend_tool_init (GimpBlendTool *blend_tool)
"context/context-opacity-set");
gimp_tool_control_set_action_object_1 (tool->control,
"context/context-gradient-select-set");
+
+ GIMP_DRAW_TOOL (tool)->use_cairo = TRUE;
}
static gboolean
@@ -379,6 +381,14 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
{
GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (draw_tool);
+ /* Draw the line between the start and end coords */
+ gimp_draw_tool_draw_line (draw_tool,
+ blend_tool->start_x,
+ blend_tool->start_y,
+ blend_tool->end_x,
+ blend_tool->end_y,
+ FALSE);
+
/* Draw start target */
gimp_draw_tool_draw_handle (draw_tool,
GIMP_HANDLE_CROSS,
@@ -398,14 +408,6 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
TARGET_SIZE,
GTK_ANCHOR_CENTER,
FALSE);
-
- /* Draw the line between the start and end coords */
- gimp_draw_tool_draw_line (draw_tool,
- blend_tool->start_x,
- blend_tool->start_y,
- blend_tool->end_x,
- blend_tool->end_y,
- FALSE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]