diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-09-27 16:41:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-09-27 16:41:15 +0800 |
commit | 5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757 (patch) | |
tree | e559d641346b15ab83f6af99471e463be986f5b1 /widgets | |
parent | 5311b63b88e4a547755219bb5120431bc1be0fc8 (diff) | |
download | gsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.tar.gz gsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.tar.zst gsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.zip |
2007-09-27 mcrha Fix for bug #478871
svn path=/trunk/; revision=34317
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/table/e-table-config.c | 10 |
2 files changed, 13 insertions, 4 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 0d2dd9e9c9..267662c979 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,5 +1,12 @@ 2007-09-27 Milan Crha <mcrha@redhat.com> + ** Fix for bug #478871 + + * e-table-config.c: (config_fields_info_update): + Shows proper 'Fields shown' description for all tables. + +2007-09-27 Milan Crha <mcrha@redhat.com> + ** Fix for bug #479716 * e-table-config.c: (setup_gui): diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index d7c6fad7af..3a4ae1dec0 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -466,20 +466,22 @@ config_fields_info_update (ETableConfig *config) { ETableColumnSpecification **column; GString *res = g_string_new (""); - int i; + int i, j; for (i = 0; i < config->state->col_count; i++){ - for (column = config->source_spec->columns; *column; column++){ + for (j = 0, column = config->source_spec->columns; *column; column++, j++){ if ((*column)->disabled) continue; - if (config->state->columns [i] != (*column)->model_col) + if (config->state->columns [i] != j) continue; g_string_append (res, dgettext (config->domain, (*column)->title)); - if (column [1]) + if (i + 1 < config->state->col_count) g_string_append (res, ", "); + + break; } } |