| 395 fprintf(stderr, "dbg: couldn't find protocol for protocol number %d!\n", u->protocol); |
395 fprintf(stderr, "dbg: couldn't find protocol for protocol number %d!\n", u->protocol); |
| 396 fflush(stderr); |
396 fflush(stderr); |
| 397 } else { |
397 } else { |
| 398 if(p->register_user != NULL && |
398 if(p->register_user != NULL && |
| 399 gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(u->register_user)) == TRUE) { |
399 gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(u->register_user)) == TRUE) { |
| 400 |
400 ref_protocol(p); |
| 401 p->register_user(a); |
401 p->register_user(a); |
| |
402 /* we don't unref the protocol because register user has callbacks |
| |
403 * that need to get called first, then they will unref the protocol |
| |
404 * appropriately */ |
| 402 } |
405 } |
| 403 } |
406 } |
| 404 |
407 |
| 405 save_prefs(); |
408 save_prefs(); |
| 406 |
409 |