From: Richard Kettlewell Date: Sun, 29 Jun 2008 11:49:00 +0000 (+0100) Subject: Merge login window fix from 4.1 branch X-Git-Tag: 4.2~11^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/8f9ab2f6a7cde1199518d5f114158610154ccbfe Merge login window fix from 4.1 branch --- 8f9ab2f6a7cde1199518d5f114158610154ccbfe diff --cc disobedience/client.c index a8d33a9,5c82953..2406903 --- a/disobedience/client.c +++ b/disobedience/client.c @@@ -126,14 -125,20 +125,15 @@@ static void gtkclient_comms_error(void /** @brief Report a protocol-level error * * The error will not be retried. We offer a callback to the submitter of the - * original command and if none is supplied we pop up an error box. + * original command and if none is supplied we drop the error message in the + * status bar. */ static void gtkclient_protocol_error(void attribute((unused)) *u, - void *v, + void attribute((unused)) *v, int code, const char *msg) { - struct callbackdata *cbd = v; - D(("gtkclient_protocol_error %s", msg)); - popup_protocol_error(code, msg); - if(cbd && cbd->onerror) - cbd->onerror(cbd, code, msg); - else - gtk_label_set_text(GTK_LABEL(report_label), msg); ++ gtk_label_set_text(GTK_LABEL(report_label), msg); } /** @brief Report callback from eclient */