diff options
author | JP Rosevear <jpr@ximian.com> | 2001-08-10 23:47:18 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-08-10 23:47:18 +0800 |
commit | 2f81032abc0e68f1a2cdbc88c23b0febd2524bb1 (patch) | |
tree | feb1e579c759fdf9e84a46ce8d8f28eb0a0daca5 /widgets/table/e-table-specification.c | |
parent | 8a2a58927497c4e88482d509f99b689dabe33a24 (diff) | |
download | gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar.gz gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar.bz2 gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar.lz gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar.xz gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.tar.zst gsoc2013-evolution-2f81032abc0e68f1a2cdbc88c23b0febd2524bb1.zip |
new proto and virtual method
2001-08-10 JP Rosevear <jpr@ximian.com>
* gal/widgets/e-canvas-vbox.h: new proto and virtual method
* gal/widgets/e-canvas-vbox.c (e_canvas_vbox_real_add_item_start):
adds the the item to the beginning
(e_canvas_vbox_add_item_start): call the virtual method
2001-08-10 JP Rosevear <jpr@ximian.com>
* e-table.c (et_build_groups): add the items to the start or end
based on where the click to add should be
(e_table_setup_table): ditto
(et_real_construct): read additional spec flag
* e-table.h: new flag
* e-table-specification.c (etsp_init): init new flag
(e_table_specification_load_from_node): set click to add end flag
(e_table_specification_save_to_node): write out flag
* e-table-specification.h: new flag
svn path=/trunk/; revision=11880
Diffstat (limited to 'widgets/table/e-table-specification.c')
-rw-r--r-- | widgets/table/e-table-specification.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index 487f3113ad..1a2aefd9c9 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -65,6 +65,7 @@ etsp_init (ETableSpecification *etsp) etsp->alternating_row_colors = TRUE; etsp->no_headers = FALSE; etsp->click_to_add = FALSE; + etsp->click_to_add_end = FALSE; etsp->horizontal_draw_grid = FALSE; etsp->vertical_draw_grid = FALSE; etsp->draw_focus = TRUE; @@ -165,6 +166,7 @@ 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->click_to_add_end = e_xml_get_bool_prop_by_name (node, "click-to-add-end") && specification->click_to_add; specification->alternating_row_colors = e_xml_get_bool_prop_by_name_with_default (node, "alternating-row-colors", TRUE); 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"); @@ -311,6 +313,7 @@ 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, "click-to-add-end", specification->click_to_add_end && specification->click_to_add); e_xml_set_bool_prop_by_name (node, "alternating-row-colors", specification->alternating_row_colors); 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); |