From ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 5 May 2000 00:10:32 +0000 Subject: Add an e_table_group_add_all function and implement it in the different 2000-05-04 Christopher James Lahey * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h: Add an e_table_group_add_all function and implement it in the different ETableGroup classes. * e-table-sort-info.c: Make set_nth not call changed twice if it needs to allocate more space. * e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Add and implement an e_table_subset_variable_add_all command. * e-table.c: Use e_table_group_add_all as appropriate. Fix ETable grouping xml to work if there is a text element at the bottom of the grouping tree. svn path=/trunk/; revision=2806 --- widgets/e-table/e-table-group.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'widgets/e-table/e-table-group.c') diff --git a/widgets/e-table/e-table-group.c b/widgets/e-table/e-table-group.c index 45fd6e6a79..e47986472b 100644 --- a/widgets/e-table/e-table-group.c +++ b/widgets/e-table/e-table-group.c @@ -123,6 +123,16 @@ e_table_group_add (ETableGroup *etg, ETG_CLASS (etg)->add (etg, row); } +void +e_table_group_add_all (ETableGroup *etg) +{ + g_return_if_fail (etg != NULL); + g_return_if_fail (E_IS_TABLE_GROUP (etg)); + + if (ETG_CLASS (etg)->add_all) + ETG_CLASS (etg)->add_all (etg); +} + gboolean e_table_group_remove (ETableGroup *etg, gint row) @@ -332,6 +342,7 @@ etg_class_init (GtkObjectClass *object_class) klass->row_selection = NULL; klass->add = NULL; + klass->add_all = NULL; klass->remove = NULL; klass->get_count = NULL; klass->increment = NULL; -- cgit v1.2.3