comparison src/buddy.c @ 4773:75f0c2799664

[gaim-migrate @ 5092] This fixes the crash from signing on then signing off again in less than 10 seconds. It also fixes the "you have signed on too many times, wait 10 minutes then try again" crash. It's like butter. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 14 Mar 2003 16:01:08 +0000
parents c4c28874ecd3
children 6219ffd18c63
comparison
equal deleted inserted replaced
4772:6fe8008d6560 4773:75f0c2799664
629 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", "default", "login.png", NULL); 629 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", "default", "login.png", NULL);
630 status = gdk_pixbuf_new_from_file(filename,NULL); 630 status = gdk_pixbuf_new_from_file(filename,NULL);
631 g_free(filename); 631 g_free(filename);
632 632
633 gtknode = GAIM_GTK_BLIST_NODE((GaimBlistNode*)b); 633 gtknode = GAIM_GTK_BLIST_NODE((GaimBlistNode*)b);
634 if (gtknode->timer > 0)
635 g_source_remove(gtknode->timer);
634 gtknode->timer = g_timeout_add(10000, (GSourceFunc)gaim_reset_present_icon, b); 636 gtknode->timer = g_timeout_add(10000, (GSourceFunc)gaim_reset_present_icon, b);
635 637
636 /* "Hey, what's all this crap?" you ask. Status icons will be themeable too, and 638 /* "Hey, what's all this crap?" you ask. Status icons will be themeable too, and
637 then it will look up protoname from the theme */ 639 then it will look up protoname from the theme */
638 } else { 640 } else {