summaryrefslogtreecommitdiff
path: root/ui/simple_dialog.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-17 22:32:03 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-17 22:32:03 +0000
commit29e4e2418499fafb5d5a931ad0b06152699f584f (patch)
treef490b9b8070ccb44932555d63d532e882a50edda /ui/simple_dialog.h
parentd9d97cb7ce5284aad682218f70e6054cabdcdd68 (diff)
downloadwireshark-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.h22
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 */