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.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/widgets/e-table/test-cols.c b/widgets/e-table/test-cols.c
index c4ce0e1b75..63033df569 100644
--- a/widgets/e-table/test-cols.c
+++ b/widgets/e-table/test-cols.c
@@ -36,17 +36,6 @@ col_count (ETableModel *etc, void *data)
return 2;
}
-static const char *
-col_name (ETableModel *etc, int col, void *data)
-{
- g_assert (col < 2);
-
- if (col == 0)
- return "flag";
- else
- return "text";
-}
-
static int
row_count (ETableModel *etc, void *data)
{
@@ -107,7 +96,7 @@ multi_cols_test (void)
gtk_widget_push_colormap (gdk_rgb_get_cmap ());
e_table_model = e_table_simple_new (
- col_count, col_name, row_count, value_at,
+ col_count, row_count, value_at,
set_value_at, is_cell_editable, NULL);
/*
@@ -133,10 +122,10 @@ multi_cols_test (void)
g_free (images);
}
- col_0 = e_table_col_new ("id", "A", 48, 48, cell_image_toggle, g_int_equal, TRUE);
+ col_0 = e_table_col_new (0, "A", 48, 48, cell_image_toggle, g_int_equal, TRUE);
e_table_header_add_column (e_table_header, col_0, 0);
- col_1 = e_table_col_new ("item", "Item Name", 180, 20, cell_left_just, g_str_equal, TRUE);
+ col_1 = e_table_col_new (1, "Item Name", 180, 20, cell_left_just, g_str_equal, TRUE);
e_table_header_add_column (e_table_header, col_1, 1);