Mercurial > pidgin
comparison src/protocols/icq/gaim_icq.c @ 8287:ef881489396e
[gaim-migrate @ 9011]
Another patch from Scott Lamb to change g_source_remove calls to
gaim_timeout_remove. It also implements gaim_timeout_remove.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 18 Feb 2004 07:43:21 +0000 |
parents | f24172f53650 |
children | 7a8aa87164ae |
comparison
equal
deleted
inserted
replaced
8286:89d9d004e3f3 | 8287:ef881489396e |
---|---|
146 static void icq_set_timeout(long interval) { | 146 static void icq_set_timeout(long interval) { |
147 debug_printf("icq_SetTimeout: %ld\n", interval); | 147 debug_printf("icq_SetTimeout: %ld\n", interval); |
148 if (interval > 0 && ack_timer == 0) | 148 if (interval > 0 && ack_timer == 0) |
149 ack_timer = gaim_timeout_add(interval * 1000, icq_set_timeout_cb, NULL); | 149 ack_timer = gaim_timeout_add(interval * 1000, icq_set_timeout_cb, NULL); |
150 else if (ack_timer > 0) { | 150 else if (ack_timer > 0) { |
151 g_source_remove(ack_timer); | 151 gaim_timeout_remove(ack_timer); |
152 ack_timer = 0; | 152 ack_timer = 0; |
153 } | 153 } |
154 } | 154 } |
155 | 155 |
156 static void icq_url_incoming(icq_Link *link, unsigned long uin, unsigned char hour, | 156 static void icq_url_incoming(icq_Link *link, unsigned long uin, unsigned char hour, |