From a30113eebca968c19094643505932a3558e08704 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 22 Aug 2000 10:03:36 +0000 Subject: Moved drawing of the cell backgrounds from ECell into ETableItem. 2000-08-22 Christopher James Lahey * e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-table-item.c: Moved drawing of the cell backgrounds from ECell into ETableItem. * e-tree-model.c: Include stdlib.c. svn path=/trunk/; revision=4915 --- widgets/table/e-cell-text.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'widgets/table/e-cell-text.c') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 8a6f9d96e2..279ef4975b 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -441,7 +441,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, CellEdit *edit = text_view->edit; gboolean edit_display = FALSE; ECellTextLineBreaks *linebreaks; - GdkColor *background, *foreground, *cell_foreground, *cursor_color; + GdkColor *foreground, *cell_foreground, *cursor_color; gchar *color_spec; EFontStyle style = E_FONT_PLAIN; @@ -472,13 +472,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, clip_rect = ▭ if (selected){ - background = &canvas->style->bg [GTK_STATE_SELECTED]; foreground = &canvas->style->text [GTK_STATE_SELECTED]; } else { - if (row % 2) - background = &canvas->style->base [GTK_STATE_NORMAL]; - else - background = &canvas->style->base [GTK_STATE_SELECTED]; foreground = &canvas->style->text [GTK_STATE_NORMAL]; } @@ -493,9 +488,6 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, foreground = cell_foreground; } - gdk_gc_set_foreground (text_view->gc, background); - gdk_draw_rectangle (drawable, text_view->gc, TRUE, - rect.x, rect.y, rect.width, rect.height); gdk_gc_set_foreground (text_view->gc, foreground); x1 += 4; -- cgit