[gnome-themes-standard] notebook: don't trim the allocated area when drawing the tab shape
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] notebook: don't trim the allocated area when drawing the tab shape
- Date: Sun, 20 Nov 2011 21:41:25 +0000 (UTC)
commit 40a6d541cbdef1d31b9b8636c85f3916cd8a5809
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Nov 20 16:25:31 2011 -0500
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.
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 296d106..7c4f3fe 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]