1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

Make the GTK font setup error box non-modal.

That was the last (in fact, the only) call to the modal version of
message_box() outside gtkdlg.c, so I can remove it from the header
file.
This commit is contained in:
Simon Tatham
2017-11-26 17:07:47 +00:00
parent 8b0d460578
commit 71ed04dbc3
3 changed files with 7 additions and 9 deletions

View File

@ -4167,10 +4167,10 @@ static void after_change_settings_dialog(void *vctx, int retval)
char *msgboxtext =
dupprintf("Could not change fonts in terminal window: %s\n",
errmsg);
message_box(inst->window, "Font setup error", msgboxtext,
string_width("Could not change fonts in terminal"
" window:"),
FALSE, &buttons_ok);
create_message_box(
inst->window, "Font setup error", msgboxtext,
string_width("Could not change fonts in terminal window:"),
FALSE, &buttons_ok, trivial_post_dialog_fn, NULL);
sfree(msgboxtext);
sfree(errmsg);
} else {