comparison src/blist.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 645a3d07ee45
comparison
equal deleted inserted replaced
8286:89d9d004e3f3 8287:ef881489396e
294 do_something = TRUE; 294 do_something = TRUE;
295 } 295 }
296 296
297 if(do_something) { 297 if(do_something) {
298 if(buddy->timer > 0) 298 if(buddy->timer > 0)
299 g_source_remove(buddy->timer); 299 gaim_timeout_remove(buddy->timer);
300 buddy->timer = gaim_timeout_add(10000, (GSourceFunc)presence_update_timeout_cb, buddy); 300 buddy->timer = gaim_timeout_add(10000, (GSourceFunc)presence_update_timeout_cb, buddy);
301 301
302 gaim_contact_compute_priority_buddy(gaim_buddy_get_contact(buddy)); 302 gaim_contact_compute_priority_buddy(gaim_buddy_get_contact(buddy));
303 if (ops) 303 if (ops)
304 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); 304 ops->update(gaimbuddylist, (GaimBlistNode*)buddy);
1101 hb.group = ((GaimBlistNode*)buddy)->parent->parent; 1101 hb.group = ((GaimBlistNode*)buddy)->parent->parent;
1102 g_hash_table_remove(gaimbuddylist->buddies, &hb); 1102 g_hash_table_remove(gaimbuddylist->buddies, &hb);
1103 g_free(hb.name); 1103 g_free(hb.name);
1104 1104
1105 if(buddy->timer > 0) 1105 if(buddy->timer > 0)
1106 g_source_remove(buddy->timer); 1106 gaim_timeout_remove(buddy->timer);
1107 1107
1108 if (buddy->icon != NULL) 1108 if (buddy->icon != NULL)
1109 gaim_buddy_icon_unref(buddy->icon); 1109 gaim_buddy_icon_unref(buddy->icon);
1110 1110
1111 ops->remove(gaimbuddylist, node); 1111 ops->remove(gaimbuddylist, node);