diff options
author | Miguel de Icaza <miguel@ximian.com> | 2001-01-12 15:53:15 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2001-01-12 15:53:15 +0800 |
commit | 0db9dfca79bc3292c6459e5fef8603b83128427d (patch) | |
tree | 2fe5daecfb7061266f496a05f1699a5595b86b18 /widgets/table/e-cell-text.h | |
parent | 07340ec35b86cff39708d16c24f3e6478a4d35c1 (diff) | |
download | gsoc2013-evolution-0db9dfca79bc3292c6459e5fef8603b83128427d.tar.gz gsoc2013-evolution-0db9dfca79bc3292c6459e5fef8603b83128427d.tar.zst gsoc2013-evolution-0db9dfca79bc3292c6459e5fef8603b83128427d.zip |
Implement new function API. Remove Gtk arguments for this. (ect_height):
2001-01-12 Miguel de Icaza <miguel@ximian.com>
* e-cell-text.c (e_cell_text_set_filter): Implement new function
API. Remove Gtk arguments for this.
(ect_height): Pass all the extra information Dan requested.
(ect_print): Pass all the extra information Dan requested.
(build_current_cell): ditto.
svn path=/trunk/; revision=7444
Diffstat (limited to 'widgets/table/e-cell-text.h')
-rw-r--r-- | widgets/table/e-cell-text.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/widgets/table/e-cell-text.h b/widgets/table/e-cell-text.h index ef3ffeab35..c3a8dd546b 100644 --- a/widgets/table/e-cell-text.h +++ b/widgets/table/e-cell-text.h @@ -28,7 +28,7 @@ #include <gal/e-table/e-cell.h> /* Should return a malloced object. */ -typedef char *(*ECellTextFilter) (const void *); +typedef char *(*ECellTextFilter) (ETableModel *table_model, int model_col, int row, void *closure); #define E_CELL_TEXT_TYPE (e_cell_text_get_type ()) #define E_CELL_TEXT(o) (GTK_CHECK_CAST ((o), E_CELL_TEXT_TYPE, ECellText)) @@ -59,8 +59,9 @@ typedef struct { See the XParseColor man page for the formats available. */ int color_column; - ECellTextFilter filter; - + ECellTextFilter filter; + void *filter_closure; + /* This stores the colors we have allocated. */ GHashTable *colors; } ECellText; @@ -69,9 +70,10 @@ typedef struct { ECellClass parent_class; } ECellTextClass; -GtkType e_cell_text_get_type (void); -ECell *e_cell_text_new (const char *fontname, GtkJustification justify); - +GtkType e_cell_text_get_type (void); +ECell *e_cell_text_new (const char *fontname, GtkJustification justify); +void e_cell_text_set_filter (ECell *ecell_text, ECellTextFilter filter, void *closure); + #endif /* _E_CELL_TEXT_H_ */ |