diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-19 23:58:24 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-19 23:58:24 +0800 |
commit | dcd4f312232db7d391b1dd969f271f9a65c540c1 (patch) | |
tree | f6eb88263ec8fe23ba81e4953a5132dda132ef8b /widgets/table/e-table-sorter.c | |
parent | 5d5a132d18b28c7fe3f6464b32c538d8a8955e48 (diff) | |
download | gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.gz gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.zst gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.zip |
Set the minimum width of newly created children.
2000-12-19 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c (etgc_add): Set the minimum width of
newly created children.
(e_table_group_container_construct): Use function
e_table_header_get_column_by_col_idx instead of
e_table_header_get_column since we're passing in a col_idx.
* e-table-header.c, e-table-header.h: New function
e_table_header_get_column_by_col_idx which searches for a column
in the ETableHeader with a certain model column (col_idx).
* e-table-sorted-variable.c (etsv_compare),
(etsv_sort), e-table-sorter.c (ets_sort): Use function
e_table_header_get_column_by_col_idx instead of
e_table_header_get_column since we're passing in a col_idx.
svn path=/trunk/; revision=7079
Diffstat (limited to 'widgets/table/e-table-sorter.c')
-rw-r--r-- | widgets/table/e-table-sorter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/table/e-table-sorter.c b/widgets/table/e-table-sorter.c index 2f6db12622..cf878c56ca 100644 --- a/widgets/table/e-table-sorter.c +++ b/widgets/table/e-table-sorter.c @@ -463,10 +463,9 @@ ets_sort(ETableSorter *ets) else column = e_table_sort_info_sorting_get_nth(ets->sort_info, j - group_cols); - if (column.column > e_table_header_count (ets->full_header)) + col = e_table_header_get_column_by_col_idx(ets->full_header, column.column); + if (col == NULL) col = e_table_header_get_column (ets->full_header, e_table_header_count (ets->full_header) - 1); - else - col = e_table_header_get_column (ets->full_header, column.column); for (i = 0; i < rows; i++) { vals_closure[i * cols + j] = e_table_model_value_at (ets->source, col->col_idx, i); |