diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-11-20 16:25:31 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-11-20 16:25:31 -0500 |
commit | 40a6d541cbdef1d31b9b8636c85f3916cd8a5809 (patch) | |
tree | e016d631a225d6f97bdf6b22d95820e347bbb1d4 /src | |
parent | 84fc666bcc2c739e1272009aad84735065bf629b (diff) | |
download | gnome-themes-standard-40a6d541cbdef1d31b9b8636c85f3916cd8a5809.tar.gz |
notebook: don't trim the allocated area when drawing the tab shape
This causes drawing artifacts and is probably here because of a previous
bug in GtkNotebook preventing the tab shape to render cleanly.
Diffstat (limited to 'src')
-rw-r--r-- | src/adwaita_engine.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c index 296d1063..7c4f3fec 100644 --- a/src/adwaita_engine.c +++ b/src/adwaita_engine.c @@ -320,20 +320,9 @@ render_notebook_extension (GtkThemingEngine *engine, cairo_translate (cr, width, height); } - if (gap_side == GTK_POS_BOTTOM) - cairo_translate (cr, - x + 0.5, - (state & GTK_STATE_FLAG_ACTIVE) ? - y + 1.0 : y); - else if (gap_side == GTK_POS_TOP) - cairo_translate (cr, - x - 0.5, - (state & GTK_STATE_FLAG_ACTIVE) ? - y - 1.0 : y); - + cairo_translate (cr, x, y); cairo_rotate (cr, angle); - width -= 1.0; draw_tab_shape_active (cr, tab_curvature, 0, 0, width, height); if (background_pattern != NULL) |