changeset 5988:4b2bc256d28a

[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 <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 02 Jul 2003 09:19:59 +0000
parents 6e19ad2ef712
children 2fc74e7bf4ff
files src/protocols/trepia/trepia.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)