Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/gg.c @ 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 | 7fd1b4c73310 |
children | 737b75b5a888 |
comparison
equal
deleted
inserted
replaced
27466:eb059c7d8b11 | 27467:ac299d029823 |
---|---|
1713 purple_debug_info("gg", "GG_EVENT_CONN_SUCCESS\n"); | 1713 purple_debug_info("gg", "GG_EVENT_CONN_SUCCESS\n"); |
1714 purple_input_remove(gc->inpa); | 1714 purple_input_remove(gc->inpa); |
1715 gc->inpa = purple_input_add(info->session->fd, | 1715 gc->inpa = purple_input_add(info->session->fd, |
1716 PURPLE_INPUT_READ, | 1716 PURPLE_INPUT_READ, |
1717 ggp_callback_recv, gc); | 1717 ggp_callback_recv, gc); |
1718 | 1718 |
1719 ggp_buddylist_send(gc); | |
1720 purple_connection_update_progress(gc, _("Connected"), 2, 2); | |
1719 purple_connection_set_state(gc, PURPLE_CONNECTED); | 1721 purple_connection_set_state(gc, PURPLE_CONNECTED); |
1720 ggp_buddylist_send(gc); | |
1721 } | 1722 } |
1722 break; | 1723 break; |
1723 case GG_EVENT_CONN_FAILED: | 1724 case GG_EVENT_CONN_FAILED: |
1724 purple_input_remove(gc->inpa); | 1725 purple_input_remove(gc->inpa); |
1725 gc->inpa = 0; | 1726 gc->inpa = 0; |
1954 glp->server_port = 8074; | 1955 glp->server_port = 8074; |
1955 } else | 1956 } else |
1956 purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n"); | 1957 purple_debug_info("gg", "Trying to retrieve address from gg appmsg service\n"); |
1957 | 1958 |
1958 info->session = gg_login(glp); | 1959 info->session = gg_login(glp); |
1960 purple_connection_update_progress(gc, _("Connecting"), 1, 2); | |
1959 if (info->session == NULL) { | 1961 if (info->session == NULL) { |
1960 purple_connection_error_reason (gc, | 1962 purple_connection_error_reason (gc, |
1961 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 1963 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
1962 _("Connection failed")); | 1964 _("Connection failed")); |
1963 g_free(glp); | 1965 g_free(glp); |