diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-06-12 09:10:20 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-06-12 09:10:20 +0000 |
commit | 18f922b46ea4a679f2ac208ca447e0cf14b8fd67 (patch) | |
tree | fc34de1c1755f99f0a17e108f604c206e0aa8be9 /util.h | |
parent | 054da75e88e1f723994813756f35aabbe9fab436 (diff) | |
download | wireshark-18f922b46ea4a679f2ac208ca447e0cf14b8fd67.tar.gz wireshark-18f922b46ea4a679f2ac208ca447e0cf14b8fd67.tar.bz2 wireshark-18f922b46ea4a679f2ac208ca447e0cf14b8fd67.zip |
Improve the alert boxes put up for file open/read/write errors. (Some
influence came from
http://developer.apple.com/techpubs/mac/HIGuidelines/HIGuidelines-232.html
which has a section on dialog box and alert box messages. However,
we're largely dealing with technoids, not with The Rest Of Us, so I
didn't go as far as one perhaps should.)
Unfortunately, it looks like it's a bit more work to arrange that, if
you give a bad file name to the "-r" flag, the dialog box pop up only
*after* the main window pops up - it has the annoying habit of popping
up *before* the main window pops up, and sometimes getting *obscured* by
it, when I do that. The removal of the dialog box stuff from
"load_cap_file()" was intended to facilitate that work. (It might also
be nice if, when an open from the "File/Open" menu item fails, we keep
the file selection box open, and give the user a chance to correct
typos, choose another file name, etc.)
svn path=/trunk/; revision=310
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,7 +1,7 @@ /* util.h * Utility definitions * - * $Id: util.h,v 1.9 1999/04/06 16:24:50 gram Exp $ + * $Id: util.h,v 1.10 1999/06/12 09:10:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -46,12 +46,6 @@ void simple_dialog(gint, gint *, gchar *, ...) void simple_dialog(gint, gint *, gchar *, ...); #endif -/* Moves or copies a file. Returns 0 on failure, 1 on success */ -int file_mv(char *from, char *to); - -/* Copies a file. Returns 0 on failure, 1 on success */ -int file_cp(char *from, char *to); - #ifdef __cplusplus } #endif /* __cplusplus */ |