From 29e4e2418499fafb5d5a931ad0b06152699f584f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 17 Jun 2012 22:32:03 +0000 Subject: 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 --- ui/simple_dialog.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'ui/simple_dialog.h') 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 */ -- cgit v1.2.1