aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rtp_stream.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-11 01:23:25 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-11 01:23:25 +0000
commitae4b48d9616ce1364dffe2ae2f959ae5f47117e4 (patch)
treea51e826d510cce43db5779afb98d8e2a705da366 /gtk/rtp_stream.c
parent0ae3628a21cf8805f34beaee553853439901c667 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10026 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/rtp_stream.c')
-rw-r--r--gtk/rtp_stream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/rtp_stream.c b/gtk/rtp_stream.c
index df73005518..029ed1c1ac 100644
--- a/gtk/rtp_stream.c
+++ b/gtk/rtp_stream.c
@@ -1,7 +1,7 @@
/* rtp_stream.c
* RTP streams summary addition for ethereal
*
- * $Id: rtp_stream.c,v 1.11 2004/01/31 09:48:26 guy Exp $
+ * $Id: rtp_stream.c,v 1.12 2004/02/11 01:23:25 guy Exp $
*
* Copyright 2003, Alcatel Business Systems
* By Lars Ruoff <lars.ruoff@gmx.net>
@@ -40,6 +40,7 @@
#include <epan/filesystem.h>
+#include "alert_box.h"
#include "simple_dialog.h"
#ifdef HAVE_SYS_TYPES_H
@@ -285,8 +286,7 @@ gboolean rtpstream_save(rtp_stream_info_t* stream, const gchar *filename)
/* open file for saving */
the_tapinfo_struct.save_file = fopen(filename, "wb");
if (the_tapinfo_struct.save_file==NULL) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- file_open_error_message(errno, TRUE), filename);
+ open_failure_alert_box(filename, errno, TRUE);
return FALSE;
}