[gtk+/wip/otte/rendernode: 27/34] roundedbox: Remove _gtk_rounded_box_move()



commit 7775ac856fdb24dcb74003297c56e918683415a3
Author: Benjamin Otte <otte redhat com>
Date:   Tue Dec 13 20:51:57 2016 +0100

    roundedbox: Remove _gtk_rounded_box_move()
    
    Use gsk_rounded_rect_offset() instead.

 gtk/gtkcssshadowvalue.c    |    2 +-
 gtk/gtkroundedbox.c        |    9 ---------
 gtk/gtkroundedboxprivate.h |    3 ---
 3 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index 32021d4..fa68e85 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -930,7 +930,7 @@ _gtk_css_shadow_value_paint_box (const GtkCssValue   *shadow,
     }
 
   box = *padding_box;
-  _gtk_rounded_box_move (&box, x, y);
+  gsk_rounded_rect_offset (&box, x, y);
 
   if (shadow->inset)
     _gtk_rounded_box_shrink (&box, spread, spread, spread, spread);
diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c
index adcced9..8231db4 100644
--- a/gtk/gtkroundedbox.c
+++ b/gtk/gtkroundedbox.c
@@ -213,15 +213,6 @@ _gtk_rounded_box_shrink (GskRoundedRect *box,
   _gtk_rounded_box_grow (box, -top, -right, -bottom, -left);
 }
 
-void
-_gtk_rounded_box_move (GskRoundedRect *box,
-                       double          dx,
-                       double          dy)
-{
-  box->bounds.origin.x += dx;
-  box->bounds.origin.y += dy;
-}
-
 typedef struct {
   double angle1;
   double angle2;
diff --git a/gtk/gtkroundedboxprivate.h b/gtk/gtkroundedboxprivate.h
index e3384cf..f4a0910 100644
--- a/gtk/gtkroundedboxprivate.h
+++ b/gtk/gtkroundedboxprivate.h
@@ -52,9 +52,6 @@ void            _gtk_rounded_box_shrink                         (GskRoundedRect
                                                                  double                  right,
                                                                  double                  bottom,
                                                                  double                  left);
-void            _gtk_rounded_box_move                           (GskRoundedRect         *box,
-                                                                 double                  dx,
-                                                                 double                  dy);
 
 double          _gtk_rounded_box_guess_length                   (const GskRoundedRect   *box,
                                                                  GtkCssSide              side);


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