From 171288a34a38acd6e8d26626235aa3ad65c61b05 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sun, 23 Jul 2000 11:03:28 +0000 Subject: added a color_column where the color can be specified as a string, e.g. 2000-07-23 Damon Chaplin * e-cell-text.c: added a color_column where the color can be specified as a string, e.g. "red" or "rgb:F/0/0". * e-cell-text.c (ect_leave_edit): don't call unbuild_current_cell() since the CellEdit struct has been freed in ect_stop_editing() and so has the text. * e-cell-text.c (unbuild_current_cell): set cell->text to NULL to make sure we don't try to free it again. svn path=/trunk/; revision=4279 --- widgets/table/e-cell-text.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'widgets/table/e-cell-text.h') diff --git a/widgets/table/e-cell-text.h b/widgets/table/e-cell-text.h index f1fc55c1f7..e0296998b3 100644 --- a/widgets/table/e-cell-text.h +++ b/widgets/table/e-cell-text.h @@ -54,7 +54,15 @@ typedef struct { int strikeout_column; int bold_column; + /* This column in the ETable should return a string specifying a color, + either a color name like "red" or a color spec like "rgb:F/0/0". + See the XParseColor man page for the formats available. */ + int color_column; + ECellTextFilter filter; + + /* This stores the colors we have allocated. */ + GHashTable *colors; } ECellText; typedef struct { -- cgit v1.2.3