forked from AuroraMiddleware/gtk
roundedbox: Remove _gtk_rounded_box_move()
Use gsk_rounded_rect_offset() instead.
This commit is contained in:
parent
e26f84fca0
commit
fa9b0f9965
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user