[gimp] app: rename gimp_display_shell_[un]transform_coordiante() to _coords()



commit 36cc10c4dc093a0abdb548ffe11cef01eb2d4c9c
Author: Michael Natterer <mitch gimp org>
Date:   Sun Feb 20 16:29:20 2011 +0100

    app: rename gimp_display_shell_[un]transform_coordiante() to _coords()

 app/display/gimpdisplayshell-autoscroll.c |    6 +-
 app/display/gimpdisplayshell-callbacks.c  |    6 +-
 app/display/gimpdisplayshell-transform.c  |   16 +++---
 app/display/gimpdisplayshell-transform.h  |   76 ++++++++++++++--------------
 4 files changed, 52 insertions(+), 52 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-autoscroll.c b/app/display/gimpdisplayshell-autoscroll.c
index 71f2bce..3428ce0 100644
--- a/app/display/gimpdisplayshell-autoscroll.c
+++ b/app/display/gimpdisplayshell-autoscroll.c
@@ -150,9 +150,9 @@ gimp_display_shell_autoscroll_timeout (gpointer data)
                                  scroll_amount_x,
                                  scroll_amount_y);
 
-      gimp_display_shell_untransform_coordinate (shell,
-                                                 &device_coords,
-                                                 &image_coords);
+      gimp_display_shell_untransform_coords (shell,
+                                             &device_coords,
+                                             &image_coords);
 
       if (gimp_tool_control_get_snap_to (active_tool->control))
         {
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index b541a4f..4a0ae86 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -710,9 +710,9 @@ gimp_display_shell_untransform_event_coords (GimpDisplayShell *shell,
   GimpTool *active_tool;
 
   /*  GimpCoords passed to tools are ALWAYS in image coordinates  */
-  gimp_display_shell_untransform_coordinate (shell,
-                                             display_coords,
-                                             image_coords);
+  gimp_display_shell_untransform_coords (shell,
+                                         display_coords,
+                                         image_coords);
 
   active_tool = tool_manager_get_active (gimp);
 
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index 35d4b8e..843b49d 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -36,7 +36,7 @@
 
 
 /**
- * gimp_display_shell_transform_coordinate:
+ * gimp_display_shell_transform_coords:
  * @shell:          a #GimpDisplayShell
  * @image_coords:   image coordinates
  * @display_coords: returns the corresponding display coordinates
@@ -45,9 +45,9 @@
  * objects can be rendered at the correct points on the display.
  **/
 void
-gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
-                                         const GimpCoords       *image_coords,
-                                         GimpCoords             *display_coords)
+gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
+                                     const GimpCoords       *image_coords,
+                                     GimpCoords             *display_coords)
 {
   g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
   g_return_if_fail (image_coords != NULL);
@@ -63,7 +63,7 @@ gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
 }
 
 /**
- * gimp_display_shell_untransform_coordinate:
+ * gimp_display_shell_untransform_coords:
  * @shell:          a #GimpDisplayShell
  * @display_coords: display coordinates
  * @image_coords:   returns the corresponding image coordinates
@@ -72,9 +72,9 @@ gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
  * points on the display can be mapped to points in the image.
  **/
 void
-gimp_display_shell_untransform_coordinate (const GimpDisplayShell *shell,
-                                           const GimpCoords       *display_coords,
-                                           GimpCoords             *image_coords)
+gimp_display_shell_untransform_coords (const GimpDisplayShell *shell,
+                                       const GimpCoords       *display_coords,
+                                       GimpCoords             *image_coords)
 {
   g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
   g_return_if_fail (display_coords != NULL);
diff --git a/app/display/gimpdisplayshell-transform.h b/app/display/gimpdisplayshell-transform.h
index a01155b..50feb71 100644
--- a/app/display/gimpdisplayshell-transform.h
+++ b/app/display/gimpdisplayshell-transform.h
@@ -19,48 +19,48 @@
 #define __GIMP_DISPLAY_SHELL_TRANSFORM_H__
 
 
-void  gimp_display_shell_transform_coordinate   (const GimpDisplayShell *shell,
-                                                 const GimpCoords       *image_coords,
-                                                 GimpCoords             *display_coords);
-void  gimp_display_shell_untransform_coordinate (const GimpDisplayShell *shell,
-                                                 const GimpCoords       *display_coords,
-                                                 GimpCoords             *image_coords);
+void  gimp_display_shell_transform_coords     (const GimpDisplayShell *shell,
+                                               const GimpCoords       *image_coords,
+                                               GimpCoords             *display_coords);
+void  gimp_display_shell_untransform_coords   (const GimpDisplayShell *shell,
+                                               const GimpCoords       *display_coords,
+                                               GimpCoords             *image_coords);
 
-void  gimp_display_shell_transform_xy           (const GimpDisplayShell *shell,
-                                                 gdouble                 x,
-                                                 gdouble                 y,
-                                                 gint                   *nx,
-                                                 gint                   *ny);
-void  gimp_display_shell_untransform_xy         (const GimpDisplayShell *shell,
-                                                 gint                    x,
-                                                 gint                    y,
-                                                 gint                   *nx,
-                                                 gint                   *ny,
-                                                 gboolean                round);
+void  gimp_display_shell_transform_xy         (const GimpDisplayShell *shell,
+                                               gdouble                 x,
+                                               gdouble                 y,
+                                               gint                   *nx,
+                                               gint                   *ny);
+void  gimp_display_shell_untransform_xy       (const GimpDisplayShell *shell,
+                                               gint                    x,
+                                               gint                    y,
+                                               gint                   *nx,
+                                               gint                   *ny,
+                                               gboolean                round);
 
-void  gimp_display_shell_transform_xy_f         (const GimpDisplayShell *shell,
-                                                 gdouble                 x,
-                                                 gdouble                 y,
-                                                 gdouble                *nx,
-                                                 gdouble                *ny);
-void  gimp_display_shell_untransform_xy_f       (const GimpDisplayShell *shell,
-                                                 gdouble                 x,
-                                                 gdouble                 y,
-                                                 gdouble                *nx,
-                                                 gdouble                *ny);
+void  gimp_display_shell_transform_xy_f       (const GimpDisplayShell *shell,
+                                               gdouble                 x,
+                                               gdouble                 y,
+                                               gdouble                *nx,
+                                               gdouble                *ny);
+void  gimp_display_shell_untransform_xy_f     (const GimpDisplayShell *shell,
+                                               gdouble                 x,
+                                               gdouble                 y,
+                                               gdouble                *nx,
+                                               gdouble                *ny);
 
-void  gimp_display_shell_transform_segments     (const GimpDisplayShell *shell,
-                                                 const BoundSeg         *src_segs,
-                                                 GimpSegment            *dest_segs,
-                                                 gint                    n_segs,
-                                                 gdouble                 offset_x,
-                                                 gdouble                 offset_y);
+void  gimp_display_shell_transform_segments   (const GimpDisplayShell *shell,
+                                               const BoundSeg         *src_segs,
+                                               GimpSegment            *dest_segs,
+                                               gint                    n_segs,
+                                               gdouble                 offset_x,
+                                               gdouble                 offset_y);
 
-void  gimp_display_shell_untransform_viewport   (const GimpDisplayShell *shell,
-                                                 gint                   *x,
-                                                 gint                   *y,
-                                                 gint                   *width,
-                                                 gint                   *height);
+void  gimp_display_shell_untransform_viewport (const GimpDisplayShell *shell,
+                                               gint                   *x,
+                                               gint                   *y,
+                                               gint                   *width,
+                                               gint                   *height);
 
 
 #endif /* __GIMP_DISPLAY_SHELL_TRANSFORM_H__ */



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