summaryrefslogtreecommitdiff
path: root/gtk/gtkrenderbackground.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-18 17:10:45 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:11 +0100
commita9809e5d30fbf4d5e3b555b5489d75102d5d30d0 (patch)
tree2644ffa1401f0a51c4f354ac9f92151ef3aa3979 /gtk/gtkrenderbackground.c
parent1760e0d3f3d9f447bfdb1c29675497d23a60fd4f (diff)
downloadgtk+-a9809e5d30fbf4d5e3b555b5489d75102d5d30d0.tar.gz
gsk: Add gsk_rounded_rect_shrink()
... and replace _gtk_rounded_box_grow() and _gtk_rounded_box_shrink() with it.
Diffstat (limited to 'gtk/gtkrenderbackground.c')
-rw-r--r--gtk/gtkrenderbackground.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkrenderbackground.c b/gtk/gtkrenderbackground.c
index 10f54c6878..4beafb203d 100644
--- a/gtk/gtkrenderbackground.c
+++ b/gtk/gtkrenderbackground.c
@@ -555,12 +555,12 @@ gtk_theming_background_init (GtkThemingBackground *bg,
_gtk_rounded_box_apply_border_radius_for_style (&bg->boxes[GTK_CSS_AREA_BORDER_BOX], bg->style, junction);
bg->boxes[GTK_CSS_AREA_PADDING_BOX] = bg->boxes[GTK_CSS_AREA_BORDER_BOX];
- _gtk_rounded_box_shrink (&bg->boxes[GTK_CSS_AREA_PADDING_BOX],
+ gsk_rounded_rect_shrink (&bg->boxes[GTK_CSS_AREA_PADDING_BOX],
border.top, border.right,
border.bottom, border.left);
bg->boxes[GTK_CSS_AREA_CONTENT_BOX] = bg->boxes[GTK_CSS_AREA_PADDING_BOX];
- _gtk_rounded_box_shrink (&bg->boxes[GTK_CSS_AREA_CONTENT_BOX],
+ gsk_rounded_rect_shrink (&bg->boxes[GTK_CSS_AREA_CONTENT_BOX],
padding.top, padding.right,
padding.bottom, padding.left);
}