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-group-container.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-group-container.c')
-rw-r--r-- | widgets/table/e-table-group-container.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 5e2b86c800..194e744f8c 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -118,10 +118,9 @@ e_table_group_container_construct (GnomeCanvasGroup *parent, ETableGroupContaine ETableCol *col; ETableSortColumn column = e_table_sort_info_grouping_get_nth(sort_info, n); - if (column.column > e_table_header_count (full_header)) + col = e_table_header_get_column_by_col_idx(full_header, column.column); + if (col == NULL) col = e_table_header_get_column (full_header, e_table_header_count (full_header) - 1); - else - col = e_table_header_get_column (full_header, column.column); e_table_group_construct (parent, E_TABLE_GROUP (etgc), full_header, header, model); etgc->ecol = col; @@ -401,7 +400,9 @@ etgc_add (ETableGroup *etg, gint row) "cursor_mode", etgc->cursor_mode, "table_selection_model", etgc->table_selection_model, "length_threshold", etgc->length_threshold, + "minimum_width", etgc->minimum_width - GROUP_INDENT, NULL); + gtk_signal_connect (GTK_OBJECT (child), "cursor_change", GTK_SIGNAL_FUNC (child_cursor_change), etgc); gtk_signal_connect (GTK_OBJECT (child), "double_click", |