diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-26 19:48:53 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-26 19:48:53 +0800 |
commit | b0ab0a15e0e0971dd276390a56e8ba36422dfa94 (patch) | |
tree | 13428633cd4a41363e1a0250b62b26663cf3f372 /widgets/table/e-table-specification.c | |
parent | 15555e2bdb97cddf4ca9e14d52f50999f60ba38e (diff) | |
download | gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.gz gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.tar.zst gsoc2013-evolution-b0ab0a15e0e0971dd276390a56e8ba36422dfa94.zip |
Document allow-grouping attribute.
2001-10-26 Christopher James Lahey <clahey@ximian.com>
* 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 <clahey@ximian.com>
* 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
Diffstat (limited to 'widgets/table/e-table-specification.c')
-rw-r--r-- | widgets/table/e-table-specification.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index 1a2aefd9c9..014eb972a6 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -59,8 +59,8 @@ etsp_class_init (GtkObjectClass *klass) static void etsp_init (ETableSpecification *etsp) { - etsp->columns = NULL; - etsp->state = NULL; + etsp->columns = NULL; + etsp->state = NULL; etsp->alternating_row_colors = TRUE; etsp->no_headers = FALSE; @@ -70,11 +70,12 @@ etsp_init (ETableSpecification *etsp) etsp->vertical_draw_grid = FALSE; etsp->draw_focus = TRUE; etsp->horizontal_scrolling = FALSE; + etsp->allow_grouping = TRUE; - etsp->cursor_mode = E_CURSOR_SIMPLE; - etsp->selection_mode = GTK_SELECTION_MULTIPLE; + etsp->cursor_mode = E_CURSOR_SIMPLE; + etsp->selection_mode = GTK_SELECTION_MULTIPLE; - etsp->click_to_add_message = NULL; + etsp->click_to_add_message = NULL; } E_MAKE_TYPE (e_table_specification, "ETableSpecification", ETableSpecification, etsp_class_init, etsp_init, PARENT_TYPE); @@ -177,6 +178,7 @@ e_table_specification_load_from_node (ETableSpecification *specification, } specification->draw_focus = e_xml_get_bool_prop_by_name_with_default (node, "draw-focus", TRUE); specification->horizontal_scrolling = e_xml_get_bool_prop_by_name_with_default (node, "horizontal-scrolling", FALSE); + specification->allow_grouping = e_xml_get_bool_prop_by_name_with_default (node, "allow-grouping", TRUE); specification->selection_mode = GTK_SELECTION_MULTIPLE; temp = e_xml_get_string_prop_by_name (node, "selection-mode"); @@ -223,6 +225,7 @@ e_table_specification_load_from_node (ETableSpecification *specification, } else if (specification->state == NULL && !strcmp (children->name, "ETableState")) { specification->state = e_table_state_new (); e_table_state_load_from_node (specification->state, children); + e_table_sort_info_set_can_group (specification->state->sort_info, specification->allow_grouping); } } @@ -319,6 +322,7 @@ e_table_specification_save_to_node (ETableSpecification *specification, e_xml_set_bool_prop_by_name (node, "vertical-draw-grid", specification->vertical_draw_grid); e_xml_set_bool_prop_by_name (node, "draw-focus", specification->draw_focus); e_xml_set_bool_prop_by_name (node, "horizontal-scrolling", specification->horizontal_scrolling); + e_xml_set_bool_prop_by_name (node, "allow-grouping", specification->allow_grouping); switch (specification->selection_mode){ case GTK_SELECTION_SINGLE: |