[gimp] app: rename gimp_display_shell_transform_segments()



commit 3127d36216f996897d0cc36e0920cc8fcd47b5fd
Author: Michael Natterer <mitch gimp org>
Date:   Wed Aug 25 01:37:19 2010 +0200

    app: rename gimp_display_shell_transform_segments()
    
    to gimp_display_shell_transform_segments_old() as step one
    of porting selection drawing to cairo.

 app/display/gimpdisplayshell-selection.c |    4 ++--
 app/display/gimpdisplayshell-transform.c |   12 ++++++------
 app/display/gimpdisplayshell-transform.h |    2 +-
 app/tools/gimpregionselecttool.c         |    4 ++--
 4 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-selection.c b/app/display/gimpdisplayshell-selection.c
index a031035..c923f17 100644
--- a/app/display/gimpdisplayshell-selection.c
+++ b/app/display/gimpdisplayshell-selection.c
@@ -582,8 +582,8 @@ selection_transform_segs (Selection      *selection,
   gint yclamp = selection->shell->disp_height + 1;
   gint i;
 
-  gimp_display_shell_transform_segments (selection->shell,
-                                         src_segs, dest_segs, n_segs, FALSE);
+  gimp_display_shell_transform_segments_old (selection->shell,
+                                             src_segs, dest_segs, n_segs, FALSE);
 
   for (i = 0; i < n_segs; i++)
     {
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index 88befda..ce17e7c 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -376,7 +376,7 @@ gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
 }
 
 /**
- * gimp_display_shell_transform_segments:
+ * gimp_display_shell_transform_segments_old:
  * @shell:       a #GimpDisplayShell
  * @src_segs:    array of segments in image coordinates
  * @dest_segs:   returns the corresponding segments in display coordinates
@@ -388,11 +388,11 @@ gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
  * objects can be rendered at the correct points on the display.
  **/
 void
-gimp_display_shell_transform_segments (const GimpDisplayShell *shell,
-                                       const BoundSeg         *src_segs,
-                                       GdkSegment             *dest_segs,
-                                       gint                    n_segs,
-                                       gboolean                use_offsets)
+gimp_display_shell_transform_segments_old (const GimpDisplayShell *shell,
+                                           const BoundSeg         *src_segs,
+                                           GdkSegment             *dest_segs,
+                                           gint                    n_segs,
+                                           gboolean                use_offsets)
 {
   gint offset_x = 0;
   gint offset_y = 0;
diff --git a/app/display/gimpdisplayshell-transform.h b/app/display/gimpdisplayshell-transform.h
index a7c9f45..d57fecc 100644
--- a/app/display/gimpdisplayshell-transform.h
+++ b/app/display/gimpdisplayshell-transform.h
@@ -63,7 +63,7 @@ void  gimp_display_shell_transform_coords       (const GimpDisplayShell *shell,
                                                  GdkPoint               *disp_coords,
                                                  gint                    n_coords,
                                                  gboolean                use_offsets);
-void  gimp_display_shell_transform_segments     (const GimpDisplayShell *shell,
+void  gimp_display_shell_transform_segments_old (const GimpDisplayShell *shell,
                                                  const BoundSeg         *src_segs,
                                                  GdkSegment             *dest_segs,
                                                  gint                    n_segs,
diff --git a/app/tools/gimpregionselecttool.c b/app/tools/gimpregionselecttool.c
index 44b141b..c96ed56 100644
--- a/app/tools/gimpregionselecttool.c
+++ b/app/tools/gimpregionselecttool.c
@@ -383,8 +383,8 @@ gimp_region_select_tool_calculate (GimpRegionSelectTool *region_sel,
 
   segs = g_new (GdkSegment, *num_segs);
 
-  gimp_display_shell_transform_segments (shell, bsegs, segs, *num_segs,
-                                         ! options->sample_merged);
+  gimp_display_shell_transform_segments_old (shell, bsegs, segs, *num_segs,
+                                             ! options->sample_merged);
   g_free (bsegs);
 
   gimp_display_shell_unset_override_cursor (shell);



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