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:
11
unix/pterm.c
11
unix/pterm.c
@ -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.
|
||||
|
Reference in New Issue
Block a user