1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -05:00

Reimplement 'really close session?' as a non-modal message box.

I've also moved it out into gtkwin.c, because it seemed easier to do
the 'find existing instance of this dialog and raise it' dance there
than to split it across source files pointlessly.
This commit is contained in:
Simon Tatham
2017-11-26 17:21:32 +00:00
parent 71ed04dbc3
commit a8e9fd7860
3 changed files with 55 additions and 24 deletions

View File

@ -3467,17 +3467,6 @@ int message_box(
return retval;
}
int reallyclose(void *frontend)
{
char *title = dupcat(appname, " Exit Confirmation", NULL);
int ret = message_box(GTK_WIDGET(get_window(frontend)), title,
"Are you sure you want to close this session?",
string_width("Most of the width of the above text"),
FALSE, &buttons_yn);
sfree(title);
return ret;
}
struct verify_ssh_host_key_result_ctx {
char *host;
int port;