From b0ab0a15e0e0971dd276390a56e8ba36422dfa94 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 26 Oct 2001 11:48:53 +0000 Subject: Document allow-grouping attribute. 2001-10-26 Christopher James Lahey * docs/etablexml.txt: Document allow-grouping attribute. * tests/test-table-1.c (SPEC): Updated this to test the allow_grouping=\"false\" attribute. From gal/e-table/ChangeLog: 2001-10-26 Christopher James Lahey * e-table-config.c (config_group_info_update, config_fields_info_update): Added some checks for NULL labels here. * e-table-specification.c, e-table-specification.h: Added allow_grouping field. Fixes Ximian bug #13412. * e-table.c, e-table.h: Added allow_grouping field. Set this field for the sort infos from state objects. svn path=/trunk/; revision=14134 --- widgets/table/e-table.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 04e6c57e03..9da76869b4 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -896,6 +896,7 @@ e_table_set_state_object(ETable *e_table, ETableState *state) } if (state->sort_info) { e_table->sort_info = e_table_sort_info_duplicate(state->sort_info); + e_table_sort_info_set_can_group (e_table->sort_info, e_table->allow_grouping); e_table->group_info_change_id = gtk_signal_connect (GTK_OBJECT (e_table->sort_info), "group_info_changed", @@ -1087,9 +1088,11 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete, e_table->header = e_table_state_to_header (GTK_WIDGET(e_table), e_table->full_header, state); e_table->horizontal_scrolling = specification->horizontal_scrolling; + e_table->allow_grouping = specification->allow_grouping; e_table->sort_info = state->sort_info; gtk_object_ref (GTK_OBJECT (state->sort_info)); + e_table_sort_info_set_can_group (e_table->sort_info, e_table->allow_grouping); e_table->group_info_change_id = gtk_signal_connect (GTK_OBJECT (e_table->sort_info), "group_info_changed", -- cgit