diff options
-rw-r--r-- | widgets/table/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/table/e-table-item.c | 8 |
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, |