From c99edac0b5c58ba083a668a7de97409151768319 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 24 Aug 2000 22:24:36 +0000 Subject: Set default values for all of the signal emissions. 2000-08-24 Christopher James Lahey * e-table.c: Set default values for all of the signal emissions. svn path=/trunk/; revision=5026 --- widgets/e-table/ChangeLog | 4 ++++ widgets/e-table/e-table.c | 6 +++--- widgets/table/e-table.c | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'widgets') diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 1b64dddaea..0099c27d0d 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,7 @@ +2000-08-24 Christopher James Lahey + + * e-table.c: Set default values for all of the signal emissions. + 2000-08-24 Christopher James Lahey * e-table-selection-model.c: Check for selection->selection being diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index 1cf9e81e9a..26cb1504b9 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -310,7 +310,7 @@ group_double_click (ETableGroup *etg, int row, ETable *et) static gint group_right_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [RIGHT_CLICK], row, col, event, &return_val); @@ -320,7 +320,7 @@ group_right_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable * static gint group_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [CLICK], row, col, event, &return_val); @@ -330,7 +330,7 @@ group_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) static gint group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [KEY_PRESS], row, col, event, &return_val); diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 1cf9e81e9a..26cb1504b9 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -310,7 +310,7 @@ group_double_click (ETableGroup *etg, int row, ETable *et) static gint group_right_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [RIGHT_CLICK], row, col, event, &return_val); @@ -320,7 +320,7 @@ group_right_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable * static gint group_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [CLICK], row, col, event, &return_val); @@ -330,7 +330,7 @@ group_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) static gint group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et) { - int return_val; + int return_val = 0; gtk_signal_emit (GTK_OBJECT (et), et_signals [KEY_PRESS], row, col, event, &return_val); -- cgit v1.2.3