aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorJason Leach <jasonleach@usa.net>2001-05-08 04:30:53 +0800
committerJacob Leach <jleach@src.gnome.org>2001-05-08 04:30:53 +0800
commit91d293f6f4108dc74533a45ba363944bbe21d7fb (patch)
tree6b45d03855b23bbd72fdf14cbd2ee8cea2c6820d /widgets/table
parenta8cdef7243983680240647ba30d8cfa8f9815511 (diff)
downloadgsoc2013-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')
-rw-r--r--widgets/table/e-cell.c4
-rw-r--r--widgets/table/e-table-header-item.c12
-rw-r--r--widgets/table/e-table-subset.c2
3 files changed, 12 insertions, 6 deletions
diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c
index 2d59df19da..79f0a0e9bd 100644
--- a/widgets/table/e-cell.c
+++ b/widgets/table/e-cell.c
@@ -178,7 +178,7 @@ e_cell_new_view (ECell *ecell, ETableModel *table_model, void *e_table_item_view
void
e_cell_realize (ECellView *ecell_view)
{
- return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->realize (ecell_view);
+ E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->realize (ecell_view);
}
/**
@@ -349,6 +349,6 @@ void
e_cell_show_tooltip (ECellView *ecell_view, int model_col, int view_col,
int row, int col_width, ETableTooltip *tooltip)
{
- return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->show_tooltip
+ E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->show_tooltip
(ecell_view, model_col, view_col, row, col_width, tooltip);
}
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++;
diff --git a/widgets/table/e-table-subset.c b/widgets/table/e-table-subset.c
index 2907698fc7..4edb093d26 100644
--- a/widgets/table/e-table-subset.c
+++ b/widgets/table/e-table-subset.c
@@ -92,7 +92,7 @@ etss_set_value_at (ETableModel *etm, int col, int row, const void *val)
etss->last_access = row;
d(g_print("h) Setting last_access to %d\n", row));
- return e_table_model_set_value_at (etss->source, col, etss->map_table [row], val);
+ e_table_model_set_value_at (etss->source, col, etss->map_table [row], val);
}
static gboolean