diff options
Diffstat (limited to 'widgets/table/e-table-model.c')
-rw-r--r-- | widgets/table/e-table-model.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/widgets/table/e-table-model.c b/widgets/table/e-table-model.c index d9c0c4fd38..5138fb8edd 100644 --- a/widgets/table/e-table-model.c +++ b/widgets/table/e-table-model.c @@ -91,6 +91,30 @@ e_table_model_append_row (ETableModel *e_table_model, ETableModel *source, int r ETM_CLASS (e_table_model)->append_row (e_table_model, source, row); } +const char * +e_table_model_row_sort_group(ETableModel *e_table_model, int row) +{ + g_return_val_if_fail (e_table_model != NULL, "/"); + g_return_val_if_fail (E_IS_TABLE_MODEL (e_table_model), "/"); + + if (ETM_CLASS (e_table_model)->row_sort_group) + return ETM_CLASS (e_table_model)->row_sort_group (e_table_model, row); + else + return "/"; +} + +gboolean +e_table_model_has_sort_group(ETableModel *e_table_model) +{ + g_return_val_if_fail (e_table_model != NULL, FALSE); + g_return_val_if_fail (E_IS_TABLE_MODEL (e_table_model), FALSE); + + if (ETM_CLASS (e_table_model)->has_sort_group) + return ETM_CLASS (e_table_model)->has_sort_group (e_table_model); + else + return FALSE; +} + void * e_table_model_duplicate_value (ETableModel *e_table_model, int col, const void *value) { @@ -221,6 +245,9 @@ e_table_model_class_init (GtkObjectClass *object_class) klass->is_cell_editable = NULL; klass->append_row = NULL; + klass->row_sort_group = NULL; + klass->has_sort_group = NULL; + klass->duplicate_value = NULL; klass->free_value = NULL; klass->initialize_value = NULL; |