Commit 772d27cf authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Arturo Espinosa
Browse files

Return the result of gtk_widget_event() if we get to the switch's default

1999-01-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
	result of gtk_widget_event() if we get to the switch's default
	case.
	(gnumeric_sheet_key): Return FALSE in the default case, since we
	did nothing there.

	* src/workbook.c (open_cmd): If the file-open dialog was
	cancelled, it will return NULL.  Take this into account.
parent 545263bc
1999-01-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
result of gtk_widget_event() if we get to the switch's default
case.
(gnumeric_sheet_key): Return FALSE in the default case, since we
did nothing there.
* src/workbook.c (open_cmd): If the file-open dialog was
cancelled, it will return NULL. Take this into account.
1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/workbook.c (workbook_setup_status_area): We do not use the
......
1999-01-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
result of gtk_widget_event() if we get to the switch's default
case.
(gnumeric_sheet_key): Return FALSE in the default case, since we
did nothing there.
* src/workbook.c (open_cmd): If the file-open dialog was
cancelled, it will return NULL. Take this into account.
1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/workbook.c (workbook_setup_status_area): We do not use the
......
1999-01-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
result of gtk_widget_event() if we get to the switch's default
case.
(gnumeric_sheet_key): Return FALSE in the default case, since we
did nothing there.
* src/workbook.c (open_cmd): If the file-open dialog was
cancelled, it will return NULL. Take this into account.
1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/workbook.c (workbook_setup_status_area): We do not use the
......
1999-01-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
result of gtk_widget_event() if we get to the switch's default
case.
(gnumeric_sheet_key): Return FALSE in the default case, since we
did nothing there.
* src/workbook.c (open_cmd): If the file-open dialog was
cancelled, it will return NULL. Take this into account.
1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/workbook.c (workbook_setup_status_area): We do not use the
......
......@@ -771,10 +771,10 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
gnumeric_sheet_stop_cell_selection (gsheet);
/* Forward the keystroke to the input line */
gtk_widget_event (gsheet->entry, (GdkEvent *) event);
return gtk_widget_event (gsheet->entry, (GdkEvent *) event);
}
return 1;
return TRUE;
}
static gint
......@@ -813,7 +813,7 @@ gnumeric_sheet_key (GtkWidget *widget, GdkEventKey *event)
return gnumeric_sheet_key_mode_object (gsheet, event);
default:
return TRUE;
return FALSE;
}
}
......
......@@ -771,10 +771,10 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
gnumeric_sheet_stop_cell_selection (gsheet);
/* Forward the keystroke to the input line */
gtk_widget_event (gsheet->entry, (GdkEvent *) event);
return gtk_widget_event (gsheet->entry, (GdkEvent *) event);
}
return 1;
return TRUE;
}
static gint
......@@ -813,7 +813,7 @@ gnumeric_sheet_key (GtkWidget *widget, GdkEventKey *event)
return gnumeric_sheet_key_mode_object (gsheet, event);
default:
return TRUE;
return FALSE;
}
}
......
......@@ -46,7 +46,7 @@ open_cmd (GtkWidget *widget, Workbook *wb)
char *fname = dialog_query_load_file (wb);
Workbook *new_wb;
if ((new_wb = workbook_read (fname)))
if (fname && (new_wb = workbook_read (fname)))
gtk_widget_show (new_wb->toplevel);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment