aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-23 06:10:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-23 06:10:27 +0800
commit175618ed1efc1ba19645cee9127055bdbd34196b (patch)
treef495fdc39375fd065645aae9481aa4f64c48d809 /widgets/table/e-table-config.c
parentb80a058e5534b668e11d7e6b31408acf52bf4bd3 (diff)
downloadgsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.gz
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.zst
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.zip
Added a disabled field here.
2001-10-22 Christopher James Lahey <clahey@ximian.com> * e-table-col.c, e-table-col.h, e-table-column-specification.c, e-table-column-specification.h: Added a disabled field here. * e-table-config.c, e-table-field-chooser-item.c: Pay attention to the disabled field here. * e-table-utils.c: Copy the disabled field from the column specification to the col. svn path=/trunk/; revision=13897
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index c0e4c7f0c3..b87859ef39 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -121,6 +121,8 @@ find_column_in_spec (ETableSpecification *spec, int model_col)
ETableColumnSpecification **column;
for (column = spec->columns; *column; column++){
+ if ((*column)->disabled)
+ continue;
if ((*column)->model_col != model_col)
continue;
@@ -137,6 +139,8 @@ find_model_column_by_name (ETableSpecification *spec, const char *s)
for (column = spec->columns; *column; column++){
+ if ((*column)->disabled)
+ continue;
if (g_strcasecmp ((*column)->title, s) == 0)
return (*column)->model_col;
}
@@ -321,6 +325,9 @@ config_fields_info_update (ETableConfig *config)
for (i = 0; i < config->state->col_count; i++){
for (column = config->source_spec->columns; *column; column++){
+ if ((*column)->disabled)
+ continue;
+
if (config->state->columns [i] != (*column)->model_col)
continue;
@@ -766,6 +773,9 @@ e_table_config_construct (ETableConfig *config,
for (column = config->source_spec->columns; *column; column++){
char *label = (*column)->title;
+ if ((*column)->disabled)
+ continue;
+
config->column_names = g_slist_append (
config->column_names, label);
}