[gnome-themes-standard] engine: draw both background image and color on notebook tabs
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] engine: draw both background image and color on notebook tabs
- Date: Fri, 2 Dec 2011 16:40:15 +0000 (UTC)
commit 7160102758cdd834472eda1dcd515e0fa5f8e05a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Dec 2 11:38:19 2011 -0500
engine: draw both background image and color on notebook tabs
Like GTK+ does.
src/adwaita_engine.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index 9338f4a..6ae3de0 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -310,6 +310,9 @@ render_notebook_extension (GtkThemingEngine *engine,
width -= 1.0;
draw_tab_shape_active (cr, tab_curvature, 0, 0, width, height);
+ gdk_cairo_set_source_rgba (cr, &background_color);
+ cairo_fill_preserve (cr);
+
if (background_pattern != NULL)
{
cairo_matrix_init_scale (&matrix,
@@ -317,13 +320,9 @@ render_notebook_extension (GtkThemingEngine *engine,
1. / height);
cairo_pattern_set_matrix (background_pattern, &matrix);
cairo_set_source (cr, background_pattern);
- }
- else
- {
- gdk_cairo_set_source_rgba (cr, &background_color);
- }
- cairo_fill (cr);
+ cairo_fill (cr);
+ }
if (state & GTK_STATE_FLAG_ACTIVE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]