[gtk+/wip/otte/rendernode: 57/100] roundedbox: Remove _gtk_rounded_box_move()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/rendernode: 57/100] roundedbox: Remove _gtk_rounded_box_move()
- Date: Sun, 18 Dec 2016 06:33:29 +0000 (UTC)
commit 2d4fbe6ea20883671279d1506f1e9f6b3ada9612
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]