comparison src/protocols/gg/gg.c @ 8896:136b4e159d04

[gaim-migrate @ 9665] Fix a gadu-gadu warning about the number of steps when signing on. And make debugging info go to the debug window rather than spewing all over my pretty terminal. I have to get it dry cleaned now. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 06 May 2004 22:38:01 +0000
parents 7c7c7f5ce09d
children 80b4c956d7ae
comparison
equal deleted inserted replaced
8895:a4c2a6ab4322 8896:136b4e159d04
1 /* 1 /*
2 * gaim - Gadu-Gadu Protocol Plugin 2 * gaim - Gadu-Gadu Protocol Plugin
3 * $Id: gg.c 9558 2004-04-24 12:19:43Z thekingant $ 3 * $Id: gg.c 9665 2004-05-06 22:38:01Z thekingant $
4 * 4 *
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
604 gaim_debug(GAIM_DEBUG_INFO, "gg", "Adding watch on fd\n"); 604 gaim_debug(GAIM_DEBUG_INFO, "gg", "Adding watch on fd\n");
605 } 605 }
606 gaim_debug(GAIM_DEBUG_INFO, "gg", "Checking State.\n"); 606 gaim_debug(GAIM_DEBUG_INFO, "gg", "Checking State.\n");
607 switch (gd->sess->state) { 607 switch (gd->sess->state) {
608 case GG_STATE_READING_DATA: 608 case GG_STATE_READING_DATA:
609 gaim_connection_update_progress(gc, _("Reading data"), 2, GG_CONNECT_STEPS); 609 gaim_connection_update_progress(gc, _("Reading data"), 1, GG_CONNECT_STEPS);
610 break; 610 break;
611 case GG_STATE_CONNECTING_GG: 611 case GG_STATE_CONNECTING_GG:
612 gaim_connection_update_progress(gc, _("Balancer handshake"), 3, GG_CONNECT_STEPS); 612 gaim_connection_update_progress(gc, _("Balancer handshake"), 2, GG_CONNECT_STEPS);
613 break; 613 break;
614 case GG_STATE_READING_KEY: 614 case GG_STATE_READING_KEY:
615 gaim_connection_update_progress(gc, _("Reading server key"), 4, GG_CONNECT_STEPS); 615 gaim_connection_update_progress(gc, _("Reading server key"), 3, GG_CONNECT_STEPS);
616 break; 616 break;
617 case GG_STATE_READING_REPLY: 617 case GG_STATE_READING_REPLY:
618 gaim_connection_update_progress(gc, _("Exchanging key hash"), 5, GG_CONNECT_STEPS); 618 gaim_connection_update_progress(gc, _("Exchanging key hash"), 4, GG_CONNECT_STEPS);
619 break; 619 break;
620 default: 620 default:
621 gaim_debug(GAIM_DEBUG_INFO, "gg", "No State found\n"); 621 gaim_debug(GAIM_DEBUG_INFO, "gg", "No State found\n");
622 break; 622 break;
623 } 623 }
706 gc->checkbox = _("Send as message"); 706 gc->checkbox = _("Send as message");
707 #endif 707 #endif
708 708
709 gd->sess = g_new0(struct gg_session, 1); 709 gd->sess = g_new0(struct gg_session, 1);
710 710
711 gaim_connection_update_progress(gc, _("Looking up GG server"), 1, GG_CONNECT_STEPS); 711 gaim_connection_update_progress(gc, _("Looking up GG server"), 0, GG_CONNECT_STEPS);
712 712
713 if (invalid_uin(account->username)) { 713 if (invalid_uin(account->username)) {
714 gaim_connection_error(gc, _("Invalid Gadu-Gadu UIN specified")); 714 gaim_connection_error(gc, _("Invalid Gadu-Gadu UIN specified"));
715 return; 715 return;
716 } 716 }