[gimp/soc-2010-cage-2: 242/242] Fix cage tool to work with the draw tool in master



commit 1a5bacf649a032b98ec1172533bfdef4918ed8a4
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Sep 26 23:57:45 2010 +0300

    Fix cage tool to work with the draw tool in master

 app/tools/gimpcagetool.c |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 08547ef..08cc563 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);
   }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]