aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-11 01:23:25 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-11 01:23:25 +0000
commit727b913bbd2b41c6ece202f240f69e2f621833ac (patch)
treea51e826d510cce43db5779afb98d8e2a705da366 /gtk/proto_draw.c
parentc7fd1b2b1357cf491eeb57d8313e5d33fd766094 (diff)
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/proto_draw.c')
-rw-r--r--gtk/proto_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c
index 506eb6941a..ea5b52b340 100644
--- a/gtk/proto_draw.c
+++ b/gtk/proto_draw.c
@@ -1,7 +1,7 @@
/* proto_draw.c
* Routines for GTK+ packet display
*
- * $Id: proto_draw.c,v 1.86 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: proto_draw.c,v 1.87 2004/02/11 01:23:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -62,6 +62,7 @@
#include "gtkglobals.h"
#include "compat_macros.h"
#include <epan/filesystem.h>
+#include "alert_box.h"
#include "simple_dialog.h"
#define BYTE_VIEW_WIDTH 16
@@ -918,8 +919,7 @@ savehex_save_clicked_cb(GtkWidget * w _U_, gpointer data _U_)
fd = open(file, O_WRONLY|O_CREAT|O_TRUNC, 0666);
if (fd == -1) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- file_open_error_message(errno, TRUE), file);
+ open_failure_alert_box(file, errno, TRUE);
return;
}
if (write(fd, data_p + start, end - start) < 0) {