diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-09-10 05:02:25 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-09-10 05:02:25 +0800 |
commit | 63292e0907bb1b1bd4539813b621fa390bb57680 (patch) | |
tree | 283c979f26442f267777a690aae6a8dcfa0beba5 /widgets/table | |
parent | 9da5b632dc8592ca953b86bd415002ab05f9f1b8 (diff) | |
download | gsoc2013-evolution-63292e0907bb1b1bd4539813b621fa390bb57680.tar.gz gsoc2013-evolution-63292e0907bb1b1bd4539813b621fa390bb57680.tar.zst gsoc2013-evolution-63292e0907bb1b1bd4539813b621fa390bb57680.zip |
Fixed the ETableModel callbacks.
2000-09-09 Christopher James Lahey <clahey@helixcode.com>
* e-tree-simple.c: Fixed the ETableModel callbacks.
svn path=/trunk/; revision=5293
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree-simple.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/widgets/table/e-tree-simple.c b/widgets/table/e-tree-simple.c index 2df7586526..15b54f782c 100644 --- a/widgets/table/e-tree-simple.c +++ b/widgets/table/e-tree-simple.c @@ -18,10 +18,10 @@ static int simple_column_count (ETableModel *etm) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->col_count) - return simple->col_count (etm, simple->data); + return simple->col_count (etm, simple->model_data); else return 0; } @@ -30,10 +30,10 @@ simple_column_count (ETableModel *etm) static void * simple_duplicate_value (ETableModel *etm, int col, const void *value) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->duplicate_value) - return simple->duplicate_value (etm, col, value, simple->data); + return simple->duplicate_value (etm, col, value, simple->model_data); else return (void *)value; } @@ -41,19 +41,19 @@ simple_duplicate_value (ETableModel *etm, int col, const void *value) static void simple_free_value (ETableModel *etm, int col, void *value) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->free_value) - simple->free_value (etm, col, value, simple->data); + simple->free_value (etm, col, value, simple->model_data); } static void * simple_initialize_value (ETableModel *etm, int col) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->initialize_value) - return simple->initialize_value (etm, col, simple->data); + return simple->initialize_value (etm, col, simple->model_data); else return NULL; } @@ -61,10 +61,10 @@ simple_initialize_value (ETableModel *etm, int col) static gboolean simple_value_is_empty (ETableModel *etm, int col, const void *value) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->value_is_empty) - return simple->value_is_empty (etm, col, value, simple->data); + return simple->value_is_empty (etm, col, value, simple->model_data); else return FALSE; } @@ -72,10 +72,10 @@ simple_value_is_empty (ETableModel *etm, int col, const void *value) static char * simple_value_to_string (ETableModel *etm, int col, const void *value) { - ETableSimple *simple = E_TABLE_SIMPLE(etm); + ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->value_to_string) - return simple->value_to_string (etm, col, value, simple->data); + return simple->value_to_string (etm, col, value, simple->model_data); else return g_strdup (""); } |