diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-17 22:32:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-17 22:32:03 +0000 |
commit | 29e4e2418499fafb5d5a931ad0b06152699f584f (patch) | |
tree | f490b9b8070ccb44932555d63d532e882a50edda /ui/simple_dialog.h | |
parent | d9d97cb7ce5284aad682218f70e6054cabdcdd68 (diff) | |
download | wireshark-29e4e2418499fafb5d5a931ad0b06152699f584f.tar.gz |
Add "simple dialog" routines to pop up modal message boxes. Use them in
file.c and routines called from it; non-modal dialogs end up, in some
cases, either hidden, devoid of the input focus and not dismissable, or
both.
svn path=/trunk/; revision=43321
Diffstat (limited to 'ui/simple_dialog.h')
-rw-r--r-- | ui/simple_dialog.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/simple_dialog.h b/ui/simple_dialog.h index 7687b4e77b..672e34da2a 100644 --- a/ui/simple_dialog.h +++ b/ui/simple_dialog.h @@ -161,6 +161,28 @@ extern char *simple_dialog_format_message(const char *msg); */ extern void display_queued_messages(void); +/* + * Alert box, with optional "don't show this message again" variable + * and checkbox, and optional secondary text. + */ +extern void simple_message_box(ESD_TYPE_E type, gboolean *notagain, + const char *secondary_msg, + const char *msg_format, ...) +#if __GNUC__ >= 2 + __attribute__((format(printf, 4, 5))) +#endif +; + +/* + * Error alert box, taking a format and a va_list argument. + */ +extern void vsimple_error_message_box(const char *msg_format, va_list ap); + +/* + * Error alert box, taking a format and a list of arguments. + */ +extern void simple_error_message_box(const char *msg_format, ...); + #ifdef __cplusplus } #endif /* __cplusplus */ |