[gnome-themes-standard] notebook: don't draw an 1px border below the active tab



commit dd5dcaea691bec2d1a7ec41405367d4ec83bf7d2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Mar 9 15:38:12 2011 -0500

    notebook: don't draw an 1px border below the active tab

 src/adwaita_engine.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index 305fd4d..d295145 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -601,7 +601,12 @@ render_notebook_extension (GtkThemingEngine *engine,
 		cairo_translate (cr, width, height);
 	}
 
-	cairo_translate (cr, x + 0.5, y);
+	if (state & GTK_STATE_FLAG_ACTIVE) {
+		cairo_translate (cr, x + 0.5, y + 1.0);
+	} else {
+		cairo_translate (cr, x + 0.5, y);
+	}
+
 	cairo_rotate (cr, angle);
 
 	width -= 1.0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]