1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -05:00

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.
This commit is contained in:
Simon Tatham 2015-09-26 14:13:56 +01:00
parent 10d3b73d33
commit 1bdeff715c

View File

@ -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);