From 63292e0907bb1b1bd4539813b621fa390bb57680 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 9 Sep 2000 21:02:25 +0000 Subject: Fixed the ETableModel callbacks. 2000-09-09 Christopher James Lahey * e-tree-simple.c: Fixed the ETableModel callbacks. svn path=/trunk/; revision=5293 --- widgets/table/e-tree-simple.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'widgets/table') 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 (""); } -- cgit