[gnome-themes-standard] engine: tab rendering code minor cleanups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] engine: tab rendering code minor cleanups
- Date: Sat, 4 Feb 2012 05:19:44 +0000 (UTC)
commit 137f4ab1db7d97b01b025b269803886d39f84564
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 4 00:18:31 2012 -0500
engine: tab rendering code minor cleanups
Now the shape code also respects the x coordinate.
src/adwaita_engine.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index e7051ec..760ac95 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -193,19 +193,19 @@ draw_tab_shape (cairo_t *cr,
gdouble width,
gdouble height)
{
- cairo_move_to (cr, 0, height);
+ cairo_move_to (cr, x, height);
cairo_arc (cr,
- curve_width, y + 3.0,
+ x + curve_width, y + 3.0,
2.5,
G_PI, G_PI + G_PI_2);
cairo_arc (cr,
- width - curve_width, y + 3.0,
+ x + width - curve_width, y + 3.0,
2.5,
G_PI + G_PI_2, 2 * G_PI);
- cairo_line_to (cr, width, height);
+ cairo_line_to (cr, x + width, height);
}
static void
@@ -247,11 +247,11 @@ render_notebook_extension (GtkThemingEngine *engine,
}
if (gap_side == GTK_POS_BOTTOM)
- x += 0.5;
+ x += border_width / 2;
else if (gap_side == GTK_POS_TOP)
- x -= 0.5;
+ x -= border_width / 2;
- width -= 1.0;
+ width -= border_width / 2;
cairo_translate (cr, x, y);
cairo_rotate (cr, angle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]