aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-simple.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-11-19 16:18:48 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-19 16:18:48 +0800
commit794f39a5d690344364ab5fb16872fb2950d6cedc (patch)
tree428ecb6329616a52bbd1862da4058ba057a218d4 /widgets/table/e-table-simple.c
parentda4c37043ecbd7f1c74315f88db36dfa195d6c64 (diff)
downloadgsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar.gz
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar.bz2
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar.lz
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar.xz
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.tar.zst
gsoc2013-evolution-794f39a5d690344364ab5fb16872fb2950d6cedc.zip
More work -mig
svn path=/trunk/; revision=1420
Diffstat (limited to 'widgets/table/e-table-simple.c')
-rw-r--r--widgets/table/e-table-simple.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/widgets/table/e-table-simple.c b/widgets/table/e-table-simple.c
index 4d82bbe995..32f7145bc6 100644
--- a/widgets/table/e-table-simple.c
+++ b/widgets/table/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;
}