X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0aa741089ec49599d920f9e427924ee054323339..33f4bde27b629068d4a17ca54d67ac54fc70c10c:/unix/gtkdlg.c?ds=sidebyside diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 50aa4fad..6020497c 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -3389,6 +3389,13 @@ void fatal_message_box(void *window, char *msg) "OK", 'o', 1, 1, NULL); } +void nonfatal_message_box(void *window, char *msg) +{ + messagebox(window, "PuTTY Error", msg, + string_width("REASONABLY LONG LINE OF TEXT FOR BASIC SANITY"), + "OK", 'o', 1, 1, NULL); +} + void fatalbox(char *p, ...) { va_list ap; @@ -3401,6 +3408,17 @@ void fatalbox(char *p, ...) cleanup_exit(1); } +void nonfatal(char *p, ...) +{ + va_list ap; + char *msg; + va_start(ap, p); + msg = dupvprintf(p, ap); + va_end(ap); + fatal_message_box(NULL, msg); + sfree(msg); +} + static GtkWidget *aboutbox = NULL; static void about_close_clicked(GtkButton *button, gpointer data)