Mercurial > pidgin.yaz
comparison plugins/idle.c @ 5227:6d1707dc8c3d
[gaim-migrate @ 5597]
debug_printf -> gaim_debug
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 26 Apr 2003 17:36:52 +0000 |
parents | fefad67de2c7 |
children | 1f901484599d |
comparison
equal
deleted
inserted
replaced
5226:a2199ef77cbc | 5227:6d1707dc8c3d |
---|---|
18 time_t t; | 18 time_t t; |
19 int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXINT); | 19 int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXINT); |
20 if (!gc) { | 20 if (!gc) { |
21 return; | 21 return; |
22 } | 22 } |
23 debug_printf("setting idle time for %s to %d\n", gc->username, tm); | 23 gaim_debug(GAIM_DEBUG_INFO, "idle", |
24 "setting idle time for %s to %d\n", gc->username, tm); | |
24 time(&t); | 25 time(&t); |
25 t -= 60 * tm; | 26 t -= 60 * tm; |
26 gc->lastsent = t; | 27 gc->lastsent = t; |
27 serv_set_idle(gc, 60 * tm); | 28 serv_set_idle(gc, 60 * tm); |
28 gc->is_idle = 0; | 29 gc->is_idle = 0; |