[gaim-migrate @ 6436]

Wed, 02 Jul 2003 09:19:59 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Wed, 02 Jul 2003 09:19:59 +0000
changeset 5988
3ef7472fa5b5
parent 5987
1c35193f8dcb
child 5989
e5fc43035608

[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.

src/protocols/trepia/trepia.c file | annotate | diff | comparison | revisions
--- 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)

mercurial