diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-13 20:51:57 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:10 +0100 |
commit | fa9b0f9965d51327139745a2536a7f2fb002b01d (patch) | |
tree | fdf196cf779db55ab467a707c0cae95e0fcd9119 /gtk | |
parent | e26f84fca0446eebea1cfc5606ac5541db6bfcd6 (diff) | |
download | gtk+-fa9b0f9965d51327139745a2536a7f2fb002b01d.tar.gz |
roundedbox: Remove _gtk_rounded_box_move()
Use gsk_rounded_rect_offset() instead.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkcssshadowvalue.c | 2 | ||||
-rw-r--r-- | gtk/gtkroundedbox.c | 9 | ||||
-rw-r--r-- | gtk/gtkroundedboxprivate.h | 3 |
3 files changed, 1 insertions, 13 deletions
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c index 32021d4326..fa68e855ec 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 adcced91ad..8231db45a0 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 e3384cf8c4..f4a0910127 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); |