diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-22 18:03:36 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-22 18:03:36 +0800 |
commit | a30113eebca968c19094643505932a3558e08704 (patch) | |
tree | a5ddd2d229498a9a5a81757ce0962ab4a4fe5c35 /widgets/e-table/e-cell-tree.c | |
parent | 9943237d5f7096921574ed2a5e969aeec6682e49 (diff) | |
download | gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.gz gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.bz2 gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.lz gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.xz gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.zst gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.zip |
Moved drawing of the cell backgrounds from ECell into ETableItem.
2000-08-22 Christopher James Lahey <clahey@helixcode.com>
* 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
Diffstat (limited to 'widgets/e-table/e-cell-tree.c')
-rw-r--r-- | widgets/e-table/e-cell-tree.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/widgets/e-table/e-cell-tree.c b/widgets/e-table/e-cell-tree.c index 46c8c862c9..d4106271e6 100644 --- a/widgets/e-table/e-cell-tree.c +++ b/widgets/e-table/e-cell-tree.c @@ -160,7 +160,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, GdkRectangle rect, *clip_rect; GtkWidget *canvas = GTK_WIDGET (tree_view->canvas); GdkGC *fg_gc = canvas->style->fg_gc[GTK_STATE_ACTIVE]; - GdkColor *background, *foreground; + GdkColor *foreground; int offset, subcell_offset; gboolean expanded, expandable; @@ -197,16 +197,12 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, gdk_gc_set_clip_rectangle (fg_gc, &rect); clip_rect = ▭ - if (selected){ - background = &canvas->style->bg [GTK_STATE_SELECTED]; + if (selected) { foreground = &canvas->style->text [GTK_STATE_SELECTED]; } else { - background = &canvas->style->base [GTK_STATE_NORMAL]; foreground = &canvas->style->text [GTK_STATE_NORMAL]; } - gdk_gc_set_foreground (tree_view->gc, background); - gdk_draw_rectangle (drawable, tree_view->gc, TRUE, - rect.x, rect.y, rect.width, rect.height); + gdk_gc_set_foreground (tree_view->gc, foreground); /* draw our lines */ |