diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:23:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:23:25 +0000 |
commit | 727b913bbd2b41c6ece202f240f69e2f621833ac (patch) | |
tree | a51e826d510cce43db5779afb98d8e2a705da366 /gtk/print_dlg.c | |
parent | c7fd1b2b1357cf491eeb57d8313e5d33fd766094 (diff) | |
download | wireshark-727b913bbd2b41c6ece202f240f69e2f621833ac.tar.gz wireshark-727b913bbd2b41c6ece202f240f69e2f621833ac.tar.bz2 wireshark-727b913bbd2b41c6ece202f240f69e2f621833ac.zip |
Add an "open_failure_alert_box()" routine to pop up an alert box for a
failed attempt to open/create a file.
Fix one call to pass the right value for the "for_writing" flag.
svn path=/trunk/; revision=10026
Diffstat (limited to 'gtk/print_dlg.c')
-rw-r--r-- | gtk/print_dlg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 5d9c6b58df..5955a36c82 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.60 2004/01/31 20:31:20 ulfl Exp $ + * $Id: print_dlg.c,v 1.61 2004/02/11 01:23:24 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -34,6 +34,7 @@ #include "keys.h" #include "print.h" #include "prefs.h" +#include "alert_box.h" #include "simple_dialog.h" #include "file_dlg.h" #include "ui_util.h" @@ -846,8 +847,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) case PP_OPEN_ERROR: if (print_args.to_file) - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - file_open_error_message(errno, TRUE), print_args.dest); + open_failure_alert_box(print_args.dest, errno, TRUE); else simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Couldn't run print command %s.", print_args.dest); |