# HG changeset patch # User Christian Hammond # Date 1057137599 0 # Node ID 4b2bc256d28a60d3b6814cddddc05d3ec711c645 # Parent 6e19ad2ef7121f1e48464940782a56ca336ebc9d [gaim-migrate @ 6436] Added sign-on meters to Trepia. It'd be nice if we could tell when the buddy list is done downloading, but oh well.. Fixed Cae's Non-Fatal Bug #7. committer: Tailor Script diff -r 6e19ad2ef712 -r 4b2bc256d28a src/protocols/trepia/trepia.c --- a/src/protocols/trepia/trepia.c Wed Jul 02 09:06:10 2003 +0000 +++ b/src/protocols/trepia/trepia.c Wed Jul 02 09:19:59 2003 +0000 @@ -46,6 +46,8 @@ #define TREPIA_VERSION "2.52" +#define TREPIA_CONNECT_STEPS 3 + static GaimPlugin *my_protocol = NULL; typedef enum @@ -660,6 +662,9 @@ if (info != NULL) { switch (type) { case TREPIA_USER_LIST: + gaim_connection_update_progress(session->gc, + _("Retrieving buddy list"), 2, TREPIA_CONNECT_STEPS); + gaim_connection_set_state(session->gc, GAIM_CONNECTED); serv_finish_login(session->gc); break; @@ -1039,6 +1044,9 @@ g_free(mac); #endif + gaim_connection_update_progress(session->gc, _("Logging in"), 1, + TREPIA_CONNECT_STEPS); + if (trepia_write(session->fd, buffer, strlen(buffer)) < 0) { gaim_connection_error(session->gc, _("Write error")); return; @@ -1073,6 +1081,9 @@ __clear_user_list(session); + gaim_connection_update_progress(gc, _("Connecting"), 0, + TREPIA_CONNECT_STEPS); + i = gaim_proxy_connect(account, server, port, __login_cb, session); if (i != 0)