static void control_monitor(void attribute((unused)) *u) {
int n;
- fprintf(stderr, "control_monitor\n");
for(n = 0; n < NICONS; ++n)
icons[n].update(&icons[n]);
- fprintf(stderr, "\n");
}
/** @brief Update the state of one of the control icons
/* If the connection is down nothing is ever usable */
if(!(last_state & DISORDER_CONNECTED))
usable = 0;
- fprintf(stderr, "%s usable=%d visible=%d\n", icon->tip, usable, visible);
(visible ? gtk_widget_show : gtk_widget_hide)(icon->button);
/* Only both updating usability if the button is visible */
if(visible)
const struct monitor *m;
const unsigned long changes = state ^ last_state;
- info("log_state %s", disorder_eclient_interpret_state(state));
+ D(("log_state %s", disorder_eclient_interpret_state(state)));
last_state = state;
/* Tell anything that cares about the state change */
for(m = monitors; m; m = m->next) {
char **vec;
uintmax_t when;
- info("log_opcallback [%s]", line);
+ D(("log_opcallback [%s]", line));
vec = split(line, &nvec, SPLIT_QUOTES, logline_error, c);
if(nvec < 2) return; /* probably an error, already
* reported */