diff options
author | Jason Leach <jasonleach@usa.net> | 2001-04-29 09:14:50 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-04-29 09:14:50 +0800 |
commit | 2d3c06b3a4157382686a992800c60473bcc61c49 (patch) | |
tree | 8a152108d5d609e9bd399d1de077f60fc9a48932 /widgets/table/e-tree.c | |
parent | 30cc6ee6daceb7089ebab1f833e32287f253bb2a (diff) | |
download | gsoc2013-evolution-2d3c06b3a4157382686a992800c60473bcc61c49.tar.gz gsoc2013-evolution-2d3c06b3a4157382686a992800c60473bcc61c49.tar.zst gsoc2013-evolution-2d3c06b3a4157382686a992800c60473bcc61c49.zip |
(Make the alternating row colors a option in ETableSpecification instead
2001-04-28 Jason Leach <jasonleach@usa.net>
(Make the alternating row colors a option in ETableSpecification
instead of a compiled in #define)
* e-table-specification.c (e_table_specification_load_from_node):
Read in the "alternating-row-colors=bool" option for
ETableSpecifications. Default value is true so unless it is
specified to be false, row colors will alternate.
(e_table_specification_save_to_node): Save the alternating row
color options here.
* e-table.c (et_build_groups): Pass down the alternating row
colors through to the ETableGroup.
* e-table-group-container.[ch]: Handle the new alternating row
colors
option here, passing it to ETableItem.
* e-table-group-leaf.[ch]: Here too.
* e-table-item.c (eti_get_cell_background_color): Got rid of the
#define ALTERNATE_COLORS, replaced with truth check for
ETableItem::alternating_row_colors.
* e-tree.c: Make ETree recognize alternating row color options as
well.
svn path=/trunk/; revision=9622
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r-- | widgets/table/e-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index cd6e90e4f6..49fcc0732f 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -109,6 +109,7 @@ struct ETreePriv { /* * Configuration settings */ + guint alternating_row_colors : 1; guint horizontal_draw_grid : 1; guint vertical_draw_grid : 1; guint draw_focus : 1; @@ -267,6 +268,7 @@ e_tree_init (GtkObject *object) e_tree->priv->sorter = NULL; e_tree->priv->reflow_idle_id = 0; + e_tree->priv->alternating_row_colors = 1; e_tree->priv->horizontal_draw_grid = 1; e_tree->priv->vertical_draw_grid = 1; e_tree->priv->draw_focus = 1; @@ -605,6 +607,7 @@ et_build_item (ETree *et) "ETableHeader", et->priv->header, "ETableModel", et->priv->etta, "selection_model", et->priv->selection, + "alternating_row_colors", et->priv->alternating_row_colors, "horizontal_draw_grid", et->priv->horizontal_draw_grid, "vertical_draw_grid", et->priv->vertical_draw_grid, "drawfocus", et->priv->draw_focus, @@ -930,6 +933,7 @@ et_real_construct (ETree *e_tree, ETreeModel *etm, ETableExtras *ete, else ete = e_table_extras_new(); + e_tree->priv->alternating_row_colors = specification->alternating_row_colors; e_tree->priv->horizontal_draw_grid = specification->horizontal_draw_grid; e_tree->priv->vertical_draw_grid = specification->vertical_draw_grid; e_tree->priv->draw_focus = specification->draw_focus; |