diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-03-21 00:22:30 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-03-21 00:22:30 +0800 |
commit | 451c410dec4efdef1562417066fd7b7464b14004 (patch) | |
tree | 8cc5fb50f634a2b806cc8c39c5104237af023283 /widgets/table/e-table-specification.c | |
parent | 726712806ea9f61f69d8c4e42ac2dedf1d7afdf2 (diff) | |
download | gsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.tar.gz gsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.tar.zst gsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.zip |
Bumped the version number to 05.99.9.
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* configure.in: Bumped the version number to 05.99.9.
From gal/e-table/ChangeLog:
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c: Turn on the vertical grid.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h: Replaced the "drawgrid" argument with
"horizontal_draw_grid" and "vertical_draw_grid" arguments.
* e-table-specification.c, e-table-specifcation: Replaced the
draw_grid setting with the horizontal_draw_grid and
vertical_draw_grid settings. If the draw-grid property is set in
a ETableSpecification it is still obeyed and overrides the
vertical-draw-grid and horizontal-draw-grid properties.
* e-table.c, e-table.h, e-tree.c, e-tree.h: Deal with the
horizontal_draw_grid and vertical_draw_grid changes.
* e-tree-model.h: Added a missing include.
svn path=/trunk/; revision=8846
Diffstat (limited to 'widgets/table/e-table-specification.c')
-rw-r--r-- | widgets/table/e-table-specification.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index cfeda97b68..10866abc08 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -61,7 +61,8 @@ etsp_init (ETableSpecification *etsp) etsp->no_headers = FALSE; etsp->click_to_add = FALSE; - etsp->draw_grid = FALSE; + etsp->horizontal_draw_grid = FALSE; + etsp->vertical_draw_grid = FALSE; etsp->draw_focus = TRUE; etsp->horizontal_scrolling = FALSE; @@ -160,7 +161,13 @@ e_table_specification_load_from_node (ETableSpecification *specification, specification->no_headers = e_xml_get_bool_prop_by_name (node, "no-headers"); specification->click_to_add = e_xml_get_bool_prop_by_name (node, "click-to-add"); - specification->draw_grid = e_xml_get_bool_prop_by_name (node, "draw-grid"); + specification->horizontal_draw_grid = e_xml_get_bool_prop_by_name (node, "horizontal-draw-grid"); + specification->vertical_draw_grid = e_xml_get_bool_prop_by_name (node, "vertical-draw-grid"); + if (e_xml_get_bool_prop_by_name_with_default(node, "draw-grid", TRUE) == + e_xml_get_bool_prop_by_name_with_default(node, "draw-grid", FALSE)) { + specification->horizontal_draw_grid = + specification->vertical_draw_grid = e_xml_get_bool_prop_by_name (node, "draw-grid"); + } 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); @@ -299,7 +306,8 @@ e_table_specification_save_to_node (ETableSpecification *specification, node = xmlNewNode (NULL, "ETableSpecification"); e_xml_set_bool_prop_by_name (node, "no-headers", specification->no_headers); e_xml_set_bool_prop_by_name (node, "click-to-add", specification->click_to_add); - e_xml_set_bool_prop_by_name (node, "draw-grid", specification->draw_grid); + e_xml_set_bool_prop_by_name (node, "horizontal-draw-grid", specification->horizontal_draw_grid); + 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); |