Mercurial > pidgin.yaz
comparison src/protocols/zephyr/zephyr.c @ 2131:acc11216ec5d
[gaim-migrate @ 2141]
changing some gtk_timeout stuff to g_timeout (since it's likely that these will be used in core rather than gtk-ui). also fixed a small buddy pounce bug.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 06 Aug 2001 23:38:48 +0000 |
parents | 56c4382f2909 |
children | 18722ae5b882 |
comparison
equal
deleted
inserted
replaced
2130:50c7a704ee56 | 2131:acc11216ec5d |
---|---|
582 if (bud_list_cache_exists(zgc)) | 582 if (bud_list_cache_exists(zgc)) |
583 do_import(NULL, zgc); | 583 do_import(NULL, zgc); |
584 process_anyone(); | 584 process_anyone(); |
585 process_zsubs(); | 585 process_zsubs(); |
586 | 586 |
587 nottimer = gtk_timeout_add(100, check_notify, NULL); | 587 nottimer = g_timeout_add(100, check_notify, NULL); |
588 loctimer = gtk_timeout_add(2000, check_loc, NULL); | 588 loctimer = g_timeout_add(2000, check_loc, NULL); |
589 } | 589 } |
590 | 590 |
591 static void write_zsubs() | 591 static void write_zsubs() |
592 { | 592 { |
593 GSList *s = subscrips; | 593 GSList *s = subscrips; |
667 s = s->next; | 667 s = s->next; |
668 } | 668 } |
669 g_slist_free(subscrips); | 669 g_slist_free(subscrips); |
670 | 670 |
671 if (nottimer) | 671 if (nottimer) |
672 gtk_timeout_remove(nottimer); | 672 g_source_remove(nottimer); |
673 nottimer = 0; | 673 nottimer = 0; |
674 if (loctimer) | 674 if (loctimer) |
675 gtk_timeout_remove(loctimer); | 675 g_source_remove(loctimer); |
676 loctimer = 0; | 676 loctimer = 0; |
677 zgc = NULL; | 677 zgc = NULL; |
678 z_call(ZCancelSubscriptions(0)); | 678 z_call(ZCancelSubscriptions(0)); |
679 z_call(ZUnsetLocation()); | 679 z_call(ZUnsetLocation()); |
680 z_call(ZClosePort()); | 680 z_call(ZClosePort()); |