diff options
Diffstat (limited to 'widgets/table/e-table-model.c')
-rw-r--r-- | widgets/table/e-table-model.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/widgets/table/e-table-model.c b/widgets/table/e-table-model.c index 646aee77bd..c3b6674130 100644 --- a/widgets/table/e-table-model.c +++ b/widgets/table/e-table-model.c @@ -113,3 +113,23 @@ e_table_model_height (ETableModel *etable) return size; } +#if 0 +int +e_table_model_max_col_width (ETableModel *etm, int col) +{ + const int nvals = e_table_model_row_count (etm); + int max = 0; + int row; + + for (row = 0; row < nvals; row++){ + int w; + + w = e_table_model_cell_width (etm, col, i); + + if (w > max) + max = w; + } + + return max; +} +#endif |