summaryrefslogtreecommitdiff
path: root/gtk/gtkrender.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/gtkrender.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/gtkrender.c')
-rw-r--r--gtk/gtkrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c
index e23d712406..a0c086bb97 100644
--- a/gtk/gtkrender.c
+++ b/gtk/gtkrender.c
@@ -986,7 +986,7 @@ gtk_render_content_path (GtkStyleContext *context,
_gtk_rounded_box_init_rect (&box, x, y, width, height);
_gtk_rounded_box_apply_border_radius_for_style (&box, gtk_style_context_lookup_style (context), 0);
- _gtk_rounded_box_shrink (&box,
+ gsk_rounded_rect_shrink (&box,
_gtk_css_number_value_get (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_BORDER_TOP_WIDTH), 100)
+ _gtk_css_number_value_get (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_PADDING_TOP), 100),
_gtk_css_number_value_get (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_BORDER_RIGHT_WIDTH), 100)