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

Revamp net_pending_errors using toplevel callbacks.

Again, I've removed the special-purpose ad-hockery from the assorted
front end message loops that dealt with deferred handling of socket
errors, and instead uxnet.c and winnet.c arrange that for themselves
by calling the new general top-level callback mechanism.

[originally from svn r10023]
This commit is contained in:
Simon Tatham
2013-08-17 16:06:27 +00:00
parent a44366585f
commit d35a41f6ba
8 changed files with 44 additions and 126 deletions

View File

@ -2843,24 +2843,6 @@ void uxsel_input_remove(int id) {
gdk_input_remove(id);
}
int frontend_net_pending_error_idle_id;
int frontend_got_net_pending_errors = FALSE;
gboolean frontend_net_pending_errors(gpointer data)
{
net_pending_errors();
gtk_idle_remove(frontend_net_pending_error_idle_id);
frontend_got_net_pending_errors = FALSE;
return FALSE;
}
void frontend_net_error_pending(void)
{
if (!frontend_got_net_pending_errors) {
frontend_got_net_pending_errors = TRUE;
frontend_net_pending_error_idle_id =
gtk_idle_add(frontend_net_pending_errors, NULL);
}
}
char *setup_fonts_ucs(struct gui_data *inst)
{
int shadowbold = conf_get_int(inst->conf, CONF_shadowbold);