aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-container.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-05 08:10:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-05 08:10:32 +0800
commitccd8e1fedde7a29acb5e10ade7e69b9197e65dbe (patch)
tree5c5d9b1d535b32aca4eb6926df4e968c2b4bd2ab /widgets/e-table/e-table-group-container.c
parentad3ee0de0244facb7bd2eed03805b68d01022601 (diff)
downloadgsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.tar.gz
gsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.tar.zst
gsoc2013-evolution-ccd8e1fedde7a29acb5e10ade7e69b9197e65dbe.zip
Add an e_table_group_add_all function and implement it in the different
2000-05-04 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/e-table/e-table-group-container.c')
-rw-r--r--widgets/e-table/e-table-group-container.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group-container.c b/widgets/e-table/e-table-group-container.c
index ac93cecc69..b1eaa82d5e 100644
--- a/widgets/e-table/e-table-group-container.c
+++ b/widgets/e-table/e-table-group-container.c
@@ -612,6 +612,16 @@ etgc_add (ETableGroup *etg, gint row)
e_canvas_item_request_reflow (GNOME_CANVAS_ITEM (etgc));
}
+static void
+etgc_add_all (ETableGroup *etg)
+{
+ ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER(etg);
+ int rows = e_table_model_row_count(etg->model);
+ int i;
+ for (i = 0; i < rows; i++)
+ etgc_add(etg, i);
+}
+
static gboolean
etgc_remove (ETableGroup *etg, gint row)
{
@@ -785,6 +795,7 @@ etgc_class_init (GtkObjectClass *object_class)
etgc_parent_class = gtk_type_class (PARENT_TYPE);
e_group_class->add = etgc_add;
+ e_group_class->add_all = etgc_add_all;
e_group_class->remove = etgc_remove;
e_group_class->increment = etgc_increment;
e_group_class->set_focus = etgc_set_focus;