chiark / gitweb /
update control buttons when disconnection detected
authorrjk@greenend.org.uk <>
Sun, 30 Sep 2007 13:37:43 +0000 (14:37 +0100)
committerrjk@greenend.org.uk <>
Sun, 30 Sep 2007 13:37:43 +0000 (14:37 +0100)
disobedience/client.c
lib/eclient.c

index 6ec4be5e6ad9c9adf811cfcdbd0d37cc0d2d6fc9..ea0dbd9acd321f21042c9c808399ea4320fb4fb4 100644 (file)
@@ -110,6 +110,8 @@ static void gtkclient_poll(void *u,
 static void gtkclient_comms_error(void attribute((unused)) *u,
                                  const char *msg) {
   D(("gtkclient_comms_error %s", msg));
+  /* Control buttons might have become unusable */
+  control_update();
   gtk_label_set_text(GTK_LABEL(report_label), msg);
 }
 
index 43fafac7a219c1c40ef57f7d374b3e7a18d7c30d..201da384b1002cbf63f0da45bb3ed4caa1c5f532 100644 (file)
@@ -1138,6 +1138,15 @@ int disorder_eclient_search(disorder_eclient *c,
 
 /* Log clients ***************************************************************/
 
+/** @brief Monitor the server log
+ * @param c Client
+ * @param callbacks Functions to call when anything happens
+ * @param v Passed to @p callbacks functions
+ *
+ * Once a client is being used for logging it cannot be used for anything else.
+ * There is magic in authuser_opcallback() to re-submit the @c log command
+ * after reconnection.
+ */
 int disorder_eclient_log(disorder_eclient *c,
                          const disorder_eclient_log_callbacks *callbacks,
                          void *v) {