From 1a5bacf649a032b98ec1172533bfdef4918ed8a4 Mon Sep 17 00:00:00 2001 From: Alexia Death Date: Sun, 26 Sep 2010 23:57:45 +0300 Subject: [PATCH] Fix cage tool to work with the draw tool in master --- app/tools/gimpcagetool.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index 08547efa09..08cc563eff 100644 --- a/app/tools/gimpcagetool.c +++ b/app/tools/gimpcagetool.c @@ -540,28 +540,26 @@ gimp_cage_tool_draw (GimpDrawTool *draw_tool) } - gimp_draw_tool_draw_lines (draw_tool, + gimp_draw_tool_add_lines (draw_tool, vertices, config->cage_vertice_number, - FALSE, FALSE); + FALSE); if (!ct->cage_complete && ct->cursor_position.x != -1000) { - gimp_draw_tool_draw_line (draw_tool, + gimp_draw_tool_add_line (draw_tool, vertices[config->cage_vertice_number - 1].x, vertices[config->cage_vertice_number - 1].y, ct->cursor_position.x, - ct->cursor_position.y, - FALSE); + ct->cursor_position.y); } else { - gimp_draw_tool_draw_line (draw_tool, + gimp_draw_tool_add_line (draw_tool, vertices[config->cage_vertice_number - 1].x, vertices[config->cage_vertice_number - 1].y, vertices[0].x, - vertices[0].y, - FALSE); + vertices[0].y); } on_handle = gimp_cage_tool_is_on_handle (config, @@ -583,11 +581,12 @@ gimp_cage_tool_draw (GimpDrawTool *draw_tool) handle = GIMP_HANDLE_FILLED_CIRCLE; } - gimp_draw_tool_draw_handle (draw_tool, handle, - point.x, - point.y, - HANDLE_SIZE, HANDLE_SIZE, - GTK_ANCHOR_CENTER, FALSE); + gimp_draw_tool_add_handle (draw_tool, + handle, + point.x, + point.y, + HANDLE_SIZE, HANDLE_SIZE, + GTK_ANCHOR_CENTER); } }