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

Checkin of last night's work on GTK message boxes. Unix PuTTY now

has proper GUI prompts for host keys etc, so it should now be usable
without a controlling tty.

[originally from svn r3028]
This commit is contained in:
Simon Tatham
2003-03-31 11:21:07 +00:00
parent 38e6887ad1
commit 823f52c540
4 changed files with 315 additions and 250 deletions

View File

@ -183,6 +183,17 @@ static Mouse_Button translate_button(Mouse_Button button)
return 0; /* shouldn't happen */
}
/*
* Return the top-level GtkWindow associated with a particular
* front end instance.
*/
void *get_window(void *frontend)
{
Terminal *term = (Terminal *)frontend;
struct gui_data *inst = (struct gui_data *)term->frontend;
return inst->window;
}
/*
* Minimise or restore the window in response to a server-side
* request.