aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table-simple.c')
-rw-r--r--widgets/e-table-simple.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/widgets/e-table-simple.c b/widgets/e-table-simple.c
index 4d82bbe995..32f7145bc6 100644
--- a/widgets/e-table-simple.c
+++ b/widgets/e-table-simple.c
@@ -60,6 +60,14 @@ simple_is_cell_editable (ETableModel *etm, int col, int row)
return simple->is_cell_editable (etm, col, row, simple->data);
}
+static int
+simple_row_height (ETableModel *etm, int row)
+{
+ ETableSimple *simple = (ETableSimple *)etm;
+
+ return simple->row_height (etm, row, simple->data);
+}
+
static void
e_table_simple_class_init (GtkObjectClass *object_class)
{
@@ -71,6 +79,7 @@ e_table_simple_class_init (GtkObjectClass *object_class)
model_class->value_at = simple_value_at;
model_class->set_value_at = simple_set_value_at;
model_class->is_cell_editable = simple_is_cell_editable;
+ model_class->row_height = simple_row_height;
}
GtkType
@@ -103,6 +112,7 @@ e_table_simple_new (ETableSimpleColumnCountFn col_count,
ETableSimpleValueAtFn value_at,
ETableSimpleSetValueAtFn set_value_at,
ETableSimpleIsCellEditableFn is_cell_editable,
+ ETableSimpleRowHeightFn row_height,
void *data)
{
ETableSimple *et;
@@ -115,6 +125,7 @@ e_table_simple_new (ETableSimpleColumnCountFn col_count,
et->value_at = value_at;
et->set_value_at = set_value_at;
et->is_cell_editable = is_cell_editable;
-
+ et->row_height = row_height;
+
return (ETableModel *) et;
}