aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-01-28 15:59:58 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-01-28 15:59:58 +0800
commit463b4b5850bf7845dd154d469791f8d3ca1be4cb (patch)
tree37e69306d1c4bd1a381aef27b3cad3cf330c4e5d /widgets
parentf36b322a7e1299ad159ff004cb5ab57628740a8a (diff)
downloadgsoc2013-evolution-463b4b5850bf7845dd154d469791f8d3ca1be4cb.tar.gz
gsoc2013-evolution-463b4b5850bf7845dd154d469791f8d3ca1be4cb.tar.zst
gsoc2013-evolution-463b4b5850bf7845dd154d469791f8d3ca1be4cb.zip
Fix some gradient issues.
2008-01-28 Srinivasa Ragavan <sragavan@novell.com> * e-table-item.c: (eti_draw): Fix some gradient issues. svn path=/trunk/; revision=34914
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/ChangeLog4
-rw-r--r--widgets/table/e-table-item.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 18765c3600..71e12de88e 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-28 Srinivasa Ragavan <sragavan@novell.com>
+
+ * e-table-item.c: (eti_draw): Fix some gradient issues.
+
2008-01-24 Srinivasa Ragavan <sragavan@novell.com>
* e-cell-pixbuf.c: (pixbuf_draw), (pixbuf_height), (pixbuf_print),
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 75dfce7ce7..62cfd3146b 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1985,10 +1985,10 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width,
cairo_pattern_add_color_stop_rgba (pat, 0.0, background->red/65535.0 ,
background->green/65535.0,
background->blue/65535.0, selected ? 0.8: 1.0);
-
- cairo_pattern_add_color_stop_rgba (pat, 0.5, background->red/65535.0 ,
- background->green/65535.0,
- background->blue/65535.0, 0.9);
+ if (selected)
+ cairo_pattern_add_color_stop_rgba (pat, 0.5, background->red/65535.0 ,
+ background->green/65535.0,
+ background->blue/65535.0, 0.9);
cairo_pattern_add_color_stop_rgba (pat, 1, background->red/65535.0 ,
background->green/65535.0,