# HG changeset patch # User Mark Doliner # Date 1085954121 0 # Node ID 8b1af7cadeb8900f53b2f7225f3e17e226a36078 # Parent 89a1cfea74e5cf849e4af296728961e515144701 [gaim-migrate @ 9924] Make the connect steps in toc the same as most other prpl's (start at 0) committer: Tailor Script diff -r 89a1cfea74e5 -r 8b1af7cadeb8 src/protocols/toc/toc.c --- a/src/protocols/toc/toc.c Sun May 30 21:54:05 2004 +0000 +++ b/src/protocols/toc/toc.c Sun May 30 21:55:21 2004 +0000 @@ -115,7 +115,7 @@ #define USEROPT_AUTH 0 #define USEROPT_AUTHPORT 1 -#define TOC_CONNECT_STEPS 4 +#define TOC_CONNECT_STEPS 3 static void toc_login_callback(gpointer, gint, GaimInputCondition); static void toc_callback(gpointer, gint, GaimInputCondition); @@ -136,7 +136,7 @@ g_snprintf(buf, sizeof buf, _("Looking up %s"), gaim_account_get_string(account, "server", TOC_HOST)); - gaim_connection_update_progress(gc, buf, 1, TOC_CONNECT_STEPS); + gaim_connection_update_progress(gc, buf, 0, TOC_CONNECT_STEPS); gaim_debug(GAIM_DEBUG_INFO, "toc", "Client connects to TOC\n"); if (gaim_proxy_connect(account, @@ -196,7 +196,7 @@ gc->inpa = gaim_input_add(tdt->toc_fd, GAIM_INPUT_READ, toc_callback, gc); g_snprintf(buf, sizeof(buf), _("Signon: %s"), gaim_account_get_username(gc->account)); - gaim_connection_update_progress(gc, buf, 2, TOC_CONNECT_STEPS); + gaim_connection_update_progress(gc, buf, 1, TOC_CONNECT_STEPS); } static void toc_close(GaimConnection *gc) @@ -613,7 +613,7 @@ return; } - gaim_connection_update_progress(gc, _("Waiting for reply..."), 3, TOC_CONNECT_STEPS); + gaim_connection_update_progress(gc, _("Waiting for reply..."), 2, TOC_CONNECT_STEPS); return; }