[gimp] app: remove gimp_draw_tool_add_rectangle_guides() and _add_corner()



commit 2296d08badc262ed4ff2b45079458ec15c17c315
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jun 28 15:47:23 2017 +0200

    app: remove gimp_draw_tool_add_rectangle_guides() and _add_corner()

 app/tools/gimpdrawtool.c |   67 ----------------------------------------------
 app/tools/gimpdrawtool.h |   16 -----------
 2 files changed, 0 insertions(+), 83 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 80413d3..5108c29 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -32,7 +32,6 @@
 #include "display/gimpcanvas.h"
 #include "display/gimpcanvasarc.h"
 #include "display/gimpcanvasboundary.h"
-#include "display/gimpcanvascorner.h"
 #include "display/gimpcanvasgroup.h"
 #include "display/gimpcanvasguide.h"
 #include "display/gimpcanvashandle.h"
@@ -41,7 +40,6 @@
 #include "display/gimpcanvaspen.h"
 #include "display/gimpcanvaspolygon.h"
 #include "display/gimpcanvasrectangle.h"
-#include "display/gimpcanvasrectangleguides.h"
 #include "display/gimpcanvassamplepoint.h"
 #include "display/gimpcanvastextcursor.h"
 #include "display/gimpcanvastransformpreview.h"
@@ -987,27 +985,6 @@ gimp_draw_tool_add_rectangle (GimpDrawTool *draw_tool,
 }
 
 GimpCanvasItem *
-gimp_draw_tool_add_rectangle_guides (GimpDrawTool   *draw_tool,
-                                     GimpGuidesType  type,
-                                     gdouble         x,
-                                     gdouble         y,
-                                     gdouble         width,
-                                     gdouble         height)
-{
-  GimpCanvasItem *item;
-
-  g_return_val_if_fail (GIMP_IS_DRAW_TOOL (draw_tool), NULL);
-
-  item = gimp_canvas_rectangle_guides_new (gimp_display_get_shell (draw_tool->display),
-                                           x, y, width, height, type, 4);
-
-  gimp_draw_tool_add_item (draw_tool, item);
-  g_object_unref (item);
-
-  return item;
-}
-
-GimpCanvasItem *
 gimp_draw_tool_add_arc (GimpDrawTool *draw_tool,
                         gboolean      filled,
                         gdouble       x,
@@ -1058,50 +1035,6 @@ gimp_draw_tool_add_handle (GimpDrawTool     *draw_tool,
   return item;
 }
 
-/**
- * gimp_draw_tool_add_corner:
- * @draw_tool:   the #GimpDrawTool
- * @highlight:
- * @put_outside: whether to put the handles on the outside of the rectangle
- * @x1:
- * @y1:
- * @x2:
- * @y2:
- * @width:       corner width
- * @height:      corner height
- * @anchor:      which corner to draw
- *
- * This function takes image space coordinates and transforms them to
- * screen window coordinates. It draws a corner into an already drawn
- * rectangle outline, taking care of not drawing over an already drawn line.
- **/
-GimpCanvasItem *
-gimp_draw_tool_add_corner (GimpDrawTool     *draw_tool,
-                           gboolean          highlight,
-                           gboolean          put_outside,
-                           gdouble           x1,
-                           gdouble           y1,
-                           gdouble           x2,
-                           gdouble           y2,
-                           gint              width,
-                           gint              height,
-                           GimpHandleAnchor  anchor)
-{
-  GimpCanvasItem *item;
-
-  g_return_val_if_fail (GIMP_IS_DRAW_TOOL (draw_tool), NULL);
-
-  item = gimp_canvas_corner_new (gimp_display_get_shell (draw_tool->display),
-                                 x1, y1, x2 - x1, y2 - y1,
-                                 anchor, width, height, put_outside);
-  gimp_canvas_item_set_highlight (item, highlight);
-
-  gimp_draw_tool_add_item (draw_tool, item);
-  g_object_unref (item);
-
-  return item;
-}
-
 GimpCanvasItem *
 gimp_draw_tool_add_lines (GimpDrawTool      *draw_tool,
                           const GimpVector2 *points,
diff --git a/app/tools/gimpdrawtool.h b/app/tools/gimpdrawtool.h
index 726531e..8a8f07f 100644
--- a/app/tools/gimpdrawtool.h
+++ b/app/tools/gimpdrawtool.h
@@ -136,12 +136,6 @@ GimpCanvasItem * gimp_draw_tool_add_rectangle        (GimpDrawTool     *draw_too
                                                       gdouble           y,
                                                       gdouble           width,
                                                       gdouble           height);
-GimpCanvasItem * gimp_draw_tool_add_rectangle_guides (GimpDrawTool     *draw_tool,
-                                                      GimpGuidesType    type,
-                                                      gdouble           x,
-                                                      gdouble           y,
-                                                      gdouble           width,
-                                                      gdouble           height);
 GimpCanvasItem * gimp_draw_tool_add_arc              (GimpDrawTool     *draw_tool,
                                                       gboolean          filled,
                                                       gdouble           x,
@@ -166,16 +160,6 @@ GimpCanvasItem * gimp_draw_tool_add_handle           (GimpDrawTool     *draw_too
                                                       gint              width,
                                                       gint              height,
                                                       GimpHandleAnchor  anchor);
-GimpCanvasItem * gimp_draw_tool_add_corner           (GimpDrawTool     *draw_tool,
-                                                      gboolean          highlight,
-                                                      gboolean          put_outside,
-                                                      gdouble           x1,
-                                                      gdouble           y1,
-                                                      gdouble           x2,
-                                                      gdouble           y2,
-                                                      gint              width,
-                                                      gint              height,
-                                                      GimpHandleAnchor  anchor);
 
 GimpCanvasItem * gimp_draw_tool_add_lines            (GimpDrawTool     *draw_tool,
                                                       const GimpVector2 *points,


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