diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-20 05:10:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-20 05:10:02 +0000 |
commit | 024c2d72fe53c1f41bd0257b835e08f9eeffe7b6 (patch) | |
tree | 5dafc8e862aa2f8d98ffaa14e89d092df38ffa85 /gtk/goto_dlg.c | |
parent | e60cf27dc05e8047103d5ec66a7716162854de22 (diff) | |
download | wireshark-024c2d72fe53c1f41bd0257b835e08f9eeffe7b6.tar.gz |
Use ESD_TYPE_CRIT for most errors (the model used by various GUIs seems
to use "warning" dialog boxes only to warn the user "if you do that, bad
things may happen" *and* to offer them the option either to drive on or
quit, so perhaps ESD_TYPE_CRIT should be used for all errors).
However, put "Ethereal: Error" rather than "Ethereal: Critical" in the
title bar, in the hopes that it'll make it clearer that Something Bad
Happened.
If the user specifies that captures should be saved to a user-specified
file rather than a temporary file, report errors trying to create that
file with "file_open_error_message()".
Make the "for_writing" argument to "file_open_error_message()" a
"gboolean", as it's either TRUE (if the file is being opened for
writing) or FALSE (if it's being opened for reading).
Report EISDIR as "XXX is a directory (folder), not a file.".
svn path=/trunk/; revision=2143
Diffstat (limited to 'gtk/goto_dlg.c')
-rw-r--r-- | gtk/goto_dlg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/goto_dlg.c b/gtk/goto_dlg.c index 78df4e64f0..169599f049 100644 --- a/gtk/goto_dlg.c +++ b/gtk/goto_dlg.c @@ -1,7 +1,7 @@ /* goto_dlg.c * Routines for "go to frame" window * - * $Id: goto_dlg.c,v 1.8 2000/07/05 02:45:40 guy Exp $ + * $Id: goto_dlg.c,v 1.9 2000/07/20 05:09:59 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -145,7 +145,7 @@ goto_frame_ok_cb(GtkWidget *ok_bt, gpointer parent_w) XXX - what about negative numbers (which "strtoul()" allows)? Can we hack up signal handlers for the widget to make it reject attempts to type in characters other than digits? */ - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_CRIT, NULL, "The frame number you entered isn't a valid number."); return; } @@ -153,12 +153,12 @@ goto_frame_ok_cb(GtkWidget *ok_bt, gpointer parent_w) switch (goto_frame(&cfile, fnumber)) { case NO_SUCH_FRAME: - simple_dialog(ESD_TYPE_WARN, NULL, "There is no frame with that frame number."); + simple_dialog(ESD_TYPE_CRIT, NULL, "There is no frame with that frame number."); return; case FRAME_NOT_DISPLAYED: /* XXX - add it to the display filter? */ - simple_dialog(ESD_TYPE_WARN, NULL, "The frame with that frame number is not currently being displayed."); + simple_dialog(ESD_TYPE_CRIT, NULL, "The frame with that frame number is not currently being displayed."); return; case FOUND_FRAME: |