[gimp] app: add x1, y1, x2, y2 parameters to gimp_canvas_transform_guides_set()



commit 7082fc8b9e86244485aaa73867e33adf9870e0ec
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 13 20:35:17 2017 +0200

    app: add x1,y1,x2,y2 parameters to gimp_canvas_transform_guides_set()

 app/display/gimpcanvastransformguides.c |    8 ++++++++
 app/display/gimpcanvastransformguides.h |    4 ++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpcanvastransformguides.c b/app/display/gimpcanvastransformguides.c
index af4224c..586616f 100644
--- a/app/display/gimpcanvastransformguides.c
+++ b/app/display/gimpcanvastransformguides.c
@@ -590,6 +590,10 @@ gimp_canvas_transform_guides_new (GimpDisplayShell  *shell,
 void
 gimp_canvas_transform_guides_set (GimpCanvasItem    *guides,
                                   const GimpMatrix3 *transform,
+                                  gdouble            x1,
+                                  gdouble            y1,
+                                  gdouble            x2,
+                                  gdouble            y2,
                                   GimpGuidesType     type,
                                   gint               n_guides)
 {
@@ -599,6 +603,10 @@ gimp_canvas_transform_guides_set (GimpCanvasItem    *guides,
 
   g_object_set (guides,
                 "transform", transform,
+                "x1",        x1,
+                "y1",        y1,
+                "x2",        x2,
+                "y2",        y2,
                 "type",      type,
                 "n-guides",  n_guides,
                 NULL);
diff --git a/app/display/gimpcanvastransformguides.h b/app/display/gimpcanvastransformguides.h
index 84fe386..6067c35 100644
--- a/app/display/gimpcanvastransformguides.h
+++ b/app/display/gimpcanvastransformguides.h
@@ -60,6 +60,10 @@ GimpCanvasItem * gimp_canvas_transform_guides_new      (GimpDisplayShell  *shell
 
 void             gimp_canvas_transform_guides_set      (GimpCanvasItem    *guides,
                                                         const GimpMatrix3 *transform,
+                                                        gdouble            x1,
+                                                        gdouble            y1,
+                                                        gdouble            x2,
+                                                        gdouble            y2,
                                                         GimpGuidesType     type,
                                                         gint               n_guides);
 


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