changeset 27467:ac299d029823

Patch from kkszysiu to make the GG prpl support purple_connection_update_progress. Fixes #9511.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Mon, 06 Jul 2009 15:46:51 +0000
parents eb059c7d8b11
children 60517bd6b3ce
files libpurple/protocols/gg/gg.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Mon Jul 06 09:35:10 2009 +0000
+++ b/libpurple/protocols/gg/gg.c	Mon Jul 06 15:46:51 2009 +0000
@@ -1715,9 +1715,10 @@
 				gc->inpa = purple_input_add(info->session->fd,
 							  PURPLE_INPUT_READ,
 							  ggp_callback_recv, gc);
-
+				
+				ggp_buddylist_send(gc);
+				purple_connection_update_progress(gc, _("Connected"), 2, 2);
 				purple_connection_set_state(gc, PURPLE_CONNECTED);
-				ggp_buddylist_send(gc);
 			}
 			break;
 		case GG_EVENT_CONN_FAILED:
@@ -1956,6 +1957,7 @@
 		purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n");
 
 	info->session = gg_login(glp);
+	purple_connection_update_progress(gc, _("Connecting"), 1, 2); 			
 	if (info->session == NULL) {
 		purple_connection_error_reason (gc,
 			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,