aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/test-cols.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/test-cols.c')
-rw-r--r--widgets/e-table/test-cols.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/e-table/test-cols.c b/widgets/e-table/test-cols.c
index d4372b189f..c47a1d47d7 100644
--- a/widgets/e-table/test-cols.c
+++ b/widgets/e-table/test-cols.c
@@ -118,6 +118,15 @@ value_is_empty (ETableModel *etc, int col, const void *value, void *data)
return !(value && *(char *)value);
}
+static char *
+value_to_string (ETableModel *etc, int col, const void *value, void *data)
+{
+ if (col == 0)
+ return g_strdup_printf("%d", (int) value);
+ else
+ return g_strdup(value);
+}
+
static void
set_canvas_size (GnomeCanvas *canvas, GtkAllocation *alloc)
{
@@ -142,6 +151,7 @@ multi_cols_test (void)
set_value_at, is_cell_editable,
duplicate_value, free_value,
initialize_value, value_is_empty,
+ value_to_string,
NULL);
/*