diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:37:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:37:13 +0000 |
commit | 3a4e71a724ca52e1783237f8860fb378920b6995 (patch) | |
tree | c57e2f278f03a464cb1198382341b74b6be4de4b /gtk/print_dlg.c | |
parent | 727b913bbd2b41c6ece202f240f69e2f621833ac (diff) |
Add "write_failure_alert_box()" to put up an alert box for a failed
attempt to write to a file (or close a file opened for writing).
Get rid of no-longer-needed #includes of <epan/filesystem.h>.
svn path=/trunk/; revision=10027
Diffstat (limited to 'gtk/print_dlg.c')
-rw-r--r-- | gtk/print_dlg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 5955a36c82..1c6fe9e699 100644 --- a/gtk/print_dlg.c +++ b/gtk/print_dlg.c @@ -1,7 +1,7 @@ /* print_dlg.c * Dialog boxes for printing * - * $Id: print_dlg.c,v 1.61 2004/02/11 01:23:24 guy Exp $ + * $Id: print_dlg.c,v 1.62 2004/02/11 01:37:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -855,8 +855,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) case PP_WRITE_ERROR: if (print_args.to_file) - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - file_write_error_message(errno), print_args.dest); + write_failure_alert_box(print_args.dest, errno); else simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Error writing to print command: %s", strerror(errno)); |