aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-group-container.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-group-container.c')
-rw-r--r--widgets/table/e-table-group-container.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c
index ac93cecc69..b1eaa82d5e 100644
--- a/widgets/table/e-table-group-container.c
+++ b/widgets/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;