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/table/e-cell-toggle.c | |
parent | 9943237d5f7096921574ed2a5e969aeec6682e49 (diff) | |
download | gsoc2013-evolution-a30113eebca968c19094643505932a3558e08704.tar.gz 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/table/e-cell-toggle.c')
-rw-r--r-- | widgets/table/e-cell-toggle.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c index d694c15b90..1be01348db 100644 --- a/widgets/table/e-cell-toggle.c +++ b/widgets/table/e-cell-toggle.c @@ -88,10 +88,11 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, int x1, int y1, int x2, int y2) { ECellToggle *toggle = E_CELL_TOGGLE (ecell_view->ecell); +#if 0 ECellToggleView *toggle_view = (ECellToggleView *) ecell_view; +#endif GdkPixbuf *image; int x, y, width, height; - GdkColor *background; const int value = GPOINTER_TO_INT ( e_table_model_value_at (ecell_view->e_table_model, model_col, row)); @@ -102,17 +103,6 @@ etog_draw (ECellView *ecell_view, GdkDrawable *drawable, return; } - /* - * Paint the background - */ - if (selected){ - background = >K_WIDGET (toggle_view->canvas)->style->bg [GTK_STATE_SELECTED]; - } else { - background = >K_WIDGET (toggle_view->canvas)->style->base [GTK_STATE_NORMAL]; - } - gdk_gc_set_foreground (toggle_view->gc, background); - gdk_draw_rectangle (drawable, toggle_view->gc, TRUE, x1, y1, x2 - x1, y2 - y1); - image = toggle->images [value]; if ((x2 - x1) < gdk_pixbuf_get_width (image)){ |