aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-example-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-example-1.c')
-rw-r--r--widgets/e-table/e-table-example-1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-example-1.c b/widgets/e-table/e-table-example-1.c
index 949131b597..7c289778aa 100644
--- a/widgets/e-table/e-table-example-1.c
+++ b/widgets/e-table/e-table-example-1.c
@@ -171,6 +171,13 @@ my_value_is_empty (ETableModel *etc, int col, const void *value, void *data)
return !(value && *(char *)value);
}
+/* This function reports if a value is empty. */
+static char *
+my_value_to_string (ETableModel *etc, int col, const void *value, void *data)
+{
+ return g_strdup(value);
+}
+
/* We create a window containing our new table. */
static void
create_table (void)
@@ -193,6 +200,7 @@ create_table (void)
my_set_value_at, my_is_cell_editable,
my_duplicate_value, my_free_value,
my_initialize_value, my_value_is_empty,
+ my_value_to_string,
NULL);
/*
* Next we create a header. The ETableHeader is used in two