aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table-subset.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table-subset.c')
-rw-r--r--widgets/e-table-subset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/e-table-subset.c b/widgets/e-table-subset.c
index afa1b862b4..41763d309b 100644
--- a/widgets/e-table-subset.c
+++ b/widgets/e-table-subset.c
@@ -138,3 +138,14 @@ e_table_subset_new (ETableModel *source, const int nvals)
return (ETableModel *) etss;
}
+ETableModel *
+e_table_subset_get_toplevel (ETableSubset *table)
+{
+ g_return_val_if_fail (table != NULL, NULL);
+ g_return_val_if_fail (E_IS_TABLE_SUBSET (table), NULL);
+
+ if (E_IS_TABLE_SUBSET (table->source))
+ return e_table_subset_get_toplevel (E_TABLE_SUBSET (table->source));
+ else
+ return table->subset;
+}