From 60b04c2ac577a4139bd388f38c6c335bf262de61 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 4 Oct 2000 21:40:08 +0000 Subject: Select all elements of the etable. 2000-10-04 Jeffrey Stedfast * e-table-selection-model.c (e_table_selection_model_select_all): Select all elements of the etable. (e_table_selection_model_invert_selection): Invert the current selection. * e-table.c (e_table_select_all): New convenience function to select all elements in an e-table. (e_table_invert_selection): New convenience function to invert the current selection in an e-table. svn path=/trunk/; revision=5719 --- widgets/table/e-table.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 5c59723b6c..294cfa9968 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -951,6 +951,24 @@ e_table_selected_row_foreach (ETable *e_table, closure); } +void +e_table_select_all (ETable *table) +{ + g_return_if_fail (table != NULL); + g_return_if_fail (E_IS_TABLE (table)); + + e_table_selection_model_select_all (table->selection); +} + +void +e_table_invert_selection (ETable *table) +{ + g_return_if_fail (table != NULL); + g_return_if_fail (E_IS_TABLE (table)); + + e_table_selection_model_invert_selection (table->selection); +} + EPrintable * e_table_get_printable (ETable *e_table) -- cgit