diff options
author | Jason Leach <jasonleach@usa.net> | 2001-05-08 04:30:53 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-05-08 04:30:53 +0800 |
commit | 91d293f6f4108dc74533a45ba363944bbe21d7fb (patch) | |
tree | 6b45d03855b23bbd72fdf14cbd2ee8cea2c6820d /widgets/table/e-table-header-item.c | |
parent | a8cdef7243983680240647ba30d8cfa8f9815511 (diff) | |
download | gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar.gz gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar.bz2 gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar.lz gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar.xz gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.tar.zst gsoc2013-evolution-91d293f6f4108dc74533a45ba363944bbe21d7fb.zip |
(Fix bug #53111: Portability fixes for HP's ANSI compiler.)
2001-04-29 Jason Leach <jasonleach@usa.net>
(Fix bug #53111: Portability fixes for HP's ANSI compiler.)
* e-table-header-item.c (ethi_popup_sort_ascending): Changes for
initializing a struct for picky compiler.
(ethi_popup_sort_descending): Ditto.
(ethi_change_sort_state): Ditto.
* e-cell.c (e_cell_realize): Fix trying to return a value for a
void function.
(e_cell_show_tooltip): Here too.
* e-table-subset.c (etss_set_value_at): Another fix for trying to
return something instead of void.
svn path=/trunk/; revision=9695
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r-- | widgets/table/e-table-header-item.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 35fb279b1c..f811b3c04b 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -1087,7 +1087,9 @@ ethi_popup_sort_ascending(GtkWidget *widget, EthiHeaderInfo *info) } } if (!found) { - ETableSortColumn column = { model_col, 1 }; + ETableSortColumn column; + column.column = model_col; + column.ascending = 1; length = e_table_sort_info_sorting_get_count(ethi->sort_info); if (length == 0) length++; @@ -1137,7 +1139,9 @@ ethi_popup_sort_descending(GtkWidget *widget, EthiHeaderInfo *info) } } if (!found) { - ETableSortColumn column = { model_col, 0 }; + ETableSortColumn column; + column.column = model_col; + column.ascending = 0; length = e_table_sort_info_sorting_get_count (ethi->sort_info); if (length == 0) length++; @@ -1355,7 +1359,9 @@ ethi_change_sort_state (ETableHeaderItem *ethi, gdouble x) } if (!found) { - ETableSortColumn column = { model_col, 1 }; + ETableSortColumn column; + column.column = model_col; + column.ascending = 1; length = e_table_sort_info_sorting_get_count(ethi->sort_info); if (length == 0) length++; |