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-header.c | |
parent | 5d5a132d18b28c7fe3f6464b32c538d8a8955e48 (diff) | |
download | gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.gz gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.bz2 gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.lz gsoc2013-evolution-dcd4f312232db7d391b1dd969f271f9a65c540c1.tar.xz 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-header.c')
-rw-r--r-- | widgets/table/e-table-header.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index 6c1431863a..3f2a363c94 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -373,6 +373,29 @@ e_table_header_get_column (ETableHeader *eth, int column) } /** + * e_table_header_get_column_by_col_id: + * @eth: the ETableHeader to query + * @col_id: the col_id to search for. + * + * Returns: The ETableCol with col_idx = @col_idx in the @eth object + */ +ETableCol * +e_table_header_get_column_by_col_idx (ETableHeader *eth, int col_idx) +{ + int i; + g_return_val_if_fail (eth != NULL, NULL); + g_return_val_if_fail (E_IS_TABLE_HEADER (eth), NULL); + + for (i = 0; i < eth->col_count; i++) { + if (eth->columns[i]->col_idx == col_idx) { + return eth->columns [i]; + } + } + + return NULL; +} + +/** * e_table_header_count: * @eth: the ETableHeader to query * |