Mercurial > pidgin
changeset 28701:da2ce5d8d4b4
jabber: A little more use of accessors.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 07 Nov 2009 07:03:49 +0000 |
parents | 8ed52586826b |
children | f3c65de7d864 |
files | libpurple/protocols/jabber/auth_cyrus.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_cyrus.c Sat Nov 07 06:59:52 2009 +0000 +++ b/libpurple/protocols/jabber/auth_cyrus.c Sat Nov 07 07:03:49 2009 +0000 @@ -155,18 +155,20 @@ } static void -auth_no_pass_cb(PurpleConnection *conn, PurpleRequestFields *fields) +auth_no_pass_cb(PurpleConnection *gc, PurpleRequestFields *fields) { + PurpleAccount *account; JabberStream *js; /* The password prompt dialog doesn't get disposed if the account disconnects */ - if (!PURPLE_CONNECTION_IS_VALID(conn)) + if (!PURPLE_CONNECTION_IS_VALID(gc)) return; - js = conn->proto_data; + account = purple_connection_get_account(gc); + js = purple_connection_get_protocol_data(gc); /* Disable the account as the user has canceled connecting */ - purple_account_set_enabled(conn->account, purple_core_get_ui(), FALSE); + purple_account_set_enabled(account, purple_core_get_ui(), FALSE); } static xmlnode *jabber_auth_start_cyrus(JabberStream *js)