diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-05-02 01:39:35 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-05-02 20:42:54 +0200 |
commit | a303547489ebe828b280d8b64ffe1cbe5af88bca (patch) | |
tree | daa8f48c78b4694e807ac90a8a354a4183cf1134 /gtk/gtkthemingengine.c | |
parent | b059098c71b5597b3fc1962b51cac1d058c8bd37 (diff) | |
download | gtk+-a303547489ebe828b280d8b64ffe1cbe5af88bca.tar.gz |
themingengine: only round outline corners after shrinking
Ensures the correctness of the applied radius.
Diffstat (limited to 'gtk/gtkthemingengine.c')
-rw-r--r-- | gtk/gtkthemingengine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 6e4fe46b90..f780e179f1 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -1895,12 +1895,12 @@ gtk_theming_engine_render_focus (GtkThemingEngine *engine, offset = _gtk_css_number_value_get (_gtk_theming_engine_peek_property (engine, GTK_CSS_PROPERTY_OUTLINE_OFFSET), 100); _gtk_rounded_box_init_rect (&border_box, x, y, width, height); - _gtk_rounded_box_apply_outline_radius_for_engine (&border_box, engine, GTK_JUNCTION_NONE); _gtk_rounded_box_shrink (&border_box, - border_width[GTK_CSS_TOP] - offset, - border_width[GTK_CSS_RIGHT] - offset, - border_width[GTK_CSS_LEFT] - offset, - border_width[GTK_CSS_BOTTOM] - offset); + _gtk_rounded_box_apply_outline_radius_for_engine (&border_box, engine, GTK_JUNCTION_NONE); render_border (cr, &border_box, border_width, 0, colors, border_style); } |