From 2d3c06b3a4157382686a992800c60473bcc61c49 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Sun, 29 Apr 2001 01:14:50 +0000 Subject: (Make the alternating row colors a option in ETableSpecification instead 2001-04-28 Jason Leach (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 --- widgets/table/e-table-group-leaf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets/table/e-table-group-leaf.h') diff --git a/widgets/table/e-table-group-leaf.h b/widgets/table/e-table-group-leaf.h index fad13c4b18..de6a63013b 100644 --- a/widgets/table/e-table-group-leaf.h +++ b/widgets/table/e-table-group-leaf.h @@ -32,6 +32,7 @@ typedef struct { ETableSubset *ets; guint is_grouped : 1; + guint alternating_row_colors : 1; guint horizontal_draw_grid : 1; guint vertical_draw_grid : 1; guint draw_focus : 1; -- cgit v1.2.3