aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-table/ChangeLog4
-rw-r--r--widgets/e-table/e-tree-simple.c24
-rw-r--r--widgets/table/e-tree-simple.c24
3 files changed, 28 insertions, 24 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index fa71dd0bfc..8cbe7ff511 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-09 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-tree-simple.c: Fixed the ETableModel callbacks.
+
2000-09-08 Christopher James Lahey <clahey@helixcode.com>
* e-tree-example-1.c: Added base ETableModel functions.
diff --git a/widgets/e-table/e-tree-simple.c b/widgets/e-table/e-tree-simple.c
index 2df7586526..15b54f782c 100644
--- a/widgets/e-table/e-tree-simple.c
+++ b/widgets/e-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 ("");
}
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 ("");
}