diff options
-rw-r--r-- | widgets/e-table/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/e-table/e-table.c | 6 | ||||
-rw-r--r-- | widgets/table/e-table.c | 6 |
3 files changed, 10 insertions, 6 deletions
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,5 +1,9 @@ 2000-08-24 Christopher James Lahey <clahey@helixcode.com> + * e-table.c: Set default values for all of the signal emissions. + +2000-08-24 Christopher James Lahey <clahey@helixcode.com> + * e-table-selection-model.c: Check for selection->selection being NULL in e_table_selection_model_selected_count. 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); |