From 1bdeff715c9b8c79ec5dc021b5aca403f575f1ae Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 Sep 2015 14:13:56 +0100 Subject: [PATCH] Widen the GTK askalg() message box. In GTK3, the line 'Continue with connection?' got wrapped (in spite of my attempt to enforce via string_width() that it didn't - probably a few pixels were needed on top of that for various padding and furniture) so it looked even sillier. But it looked a bit narrow to be sensible even in GTK2, so the simplest answer is just to widen it considerably. --- unix/gtkdlg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index a1d72a84..573111ae 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -3520,7 +3520,8 @@ int askalg(void *frontend, const char *algtype, const char *algname, text = dupprintf(msg, algtype, algname); ret = messagebox(GTK_WIDGET(get_window(frontend)), "PuTTY Security Alert", text, - string_width("Continue with connection?"), + string_width("Reasonably long line of text as a width" + " template"), "Yes", 'y', 0, 1, "No", 'n', 0, 0, NULL);