[gimp] app: change gimp_tool_widget_add_corner() to take x, y, width, height



commit 1ebf905ed3c1c4c79df3201c0bdaffe69813dcde
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jun 26 14:13:07 2017 +0200

    app: change gimp_tool_widget_add_corner() to take x, y, width, height
    
    instead of x1, y1, x2, y2.

 app/display/gimptoolwidget.c |   16 ++++++++--------
 app/display/gimptoolwidget.h |   12 ++++++------
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/app/display/gimptoolwidget.c b/app/display/gimptoolwidget.c
index 2dfb5c9..4e321df 100644
--- a/app/display/gimptoolwidget.c
+++ b/app/display/gimptoolwidget.c
@@ -617,13 +617,13 @@ gimp_tool_widget_add_handle (GimpToolWidget   *widget,
 
 GimpCanvasItem *
 gimp_tool_widget_add_corner (GimpToolWidget   *widget,
-                             gdouble           x1,
-                             gdouble           y1,
-                             gdouble           x2,
-                             gdouble           y2,
+                             gdouble           x,
+                             gdouble           y,
+                             gdouble           width,
+                             gdouble           height,
                              GimpHandleAnchor  anchor,
-                             gint              width,
-                             gint              height,
+                             gint              corner_width,
+                             gint              corner_height,
                              gboolean          outside)
 {
   GimpCanvasItem *item;
@@ -631,8 +631,8 @@ gimp_tool_widget_add_corner (GimpToolWidget   *widget,
   g_return_val_if_fail (GIMP_IS_TOOL_WIDGET (widget), NULL);
 
   item = gimp_canvas_corner_new (widget->private->shell,
-                                 x1, y1, x2 - x1, y2 - y1,
-                                 anchor, width, height,
+                                 x, y, width, height,
+                                 anchor, corner_width, corner_height,
                                  outside);
 
   gimp_tool_widget_add_item (widget, item);
diff --git a/app/display/gimptoolwidget.h b/app/display/gimptoolwidget.h
index e2c929b..51f9bb0 100644
--- a/app/display/gimptoolwidget.h
+++ b/app/display/gimptoolwidget.h
@@ -193,13 +193,13 @@ GimpCanvasItem * gimp_tool_widget_add_handle    (GimpToolWidget       *widget,
                                                  gint                  height,
                                                  GimpHandleAnchor      anchor);
 GimpCanvasItem * gimp_tool_widget_add_corner    (GimpToolWidget       *widget,
-                                                 gdouble               x1,
-                                                 gdouble               y1,
-                                                 gdouble               x2,
-                                                 gdouble               y2,
+                                                 gdouble               x,
+                                                 gdouble               y,
+                                                 gdouble               width,
+                                                 gdouble               height,
                                                  GimpHandleAnchor      anchor,
-                                                 gint                  width,
-                                                 gint                  height,
+                                                 gint                  corner_width,
+                                                 gint                  corner_height,
                                                  gboolean              outside);
 
 GimpCanvasItem * gimp_tool_widget_add_rectangle_guides


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