comparison libpurple/protocols/gg/gg.c @ 30283:fb6312881d56

gg: Fix misuse of update_progress. Fixes #11774 committer: Paul Aurich <paul@darkrain42.org>
author kkszysiu@gmail.com
date Sun, 02 May 2010 21:27:42 +0000
parents 2a436e0ce977
children a8cc50c2279f
comparison
equal deleted inserted replaced
30282:944718b57a66 30283:fb6312881d56
1729 gc->inpa = purple_input_add(info->session->fd, 1729 gc->inpa = purple_input_add(info->session->fd,
1730 PURPLE_INPUT_READ, 1730 PURPLE_INPUT_READ,
1731 ggp_callback_recv, gc); 1731 ggp_callback_recv, gc);
1732 1732
1733 ggp_buddylist_send(gc); 1733 ggp_buddylist_send(gc);
1734 purple_connection_update_progress(gc, _("Connected"), 2, 2); 1734 purple_connection_update_progress(gc, _("Connected"), 1, 2);
1735 purple_connection_set_state(gc, PURPLE_CONNECTED); 1735 purple_connection_set_state(gc, PURPLE_CONNECTED);
1736 } 1736 }
1737 break; 1737 break;
1738 case GG_EVENT_CONN_FAILED: 1738 case GG_EVENT_CONN_FAILED:
1739 purple_input_remove(gc->inpa); 1739 purple_input_remove(gc->inpa);
1982 glp->server_port = 8074; 1982 glp->server_port = 8074;
1983 } else 1983 } else
1984 purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n"); 1984 purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n");
1985 1985
1986 info->session = gg_login(glp); 1986 info->session = gg_login(glp);
1987 purple_connection_update_progress(gc, _("Connecting"), 1, 2); 1987 purple_connection_update_progress(gc, _("Connecting"), 0, 2);
1988 if (info->session == NULL) { 1988 if (info->session == NULL) {
1989 purple_connection_error_reason (gc, 1989 purple_connection_error_reason (gc,
1990 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, 1990 PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
1991 _("Connection failed")); 1991 _("Connection failed"));
1992 g_free(glp); 1992 g_free(glp);