Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/gg.c @ 32738:f877a2315d7e
Gadu-Gadu: use correct libgadu api functions to change password
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Tue, 11 Oct 2011 10:18:00 +0000 |
parents | 03a55a2997d1 |
children | 2b3b3ffc9d28 |
comparison
equal
deleted
inserted
replaced
32737:03a55a2997d1 | 32738:f877a2315d7e |
---|---|
633 const char *messagesTitle = | 633 const char *messagesTitle = |
634 _("Change password for the Gadu-Gadu account"); | 634 _("Change password for the Gadu-Gadu account"); |
635 | 635 |
636 purple_input_remove(req->inpa); | 636 purple_input_remove(req->inpa); |
637 | 637 |
638 if (gg_pubdir_watch_fd(req->http_req) == -1 || | 638 if (gg_change_passwd_watch_fd(req->http_req) == -1 || |
639 req->http_req->state == GG_STATE_ERROR) | 639 req->http_req->state == GG_STATE_ERROR) |
640 goto exit_error; | 640 goto exit_error; |
641 | 641 |
642 if (req->http_req->state != GG_STATE_DONE) | 642 if (req->http_req->state != GG_STATE_DONE) |
643 { | 643 { |
658 exit_error: | 658 exit_error: |
659 purple_notify_error(req->account, messagesTitle, | 659 purple_notify_error(req->account, messagesTitle, |
660 _("Unable to change password. Error occurred.\n"), NULL); | 660 _("Unable to change password. Error occurred.\n"), NULL); |
661 | 661 |
662 exit_cleanup: | 662 exit_cleanup: |
663 gg_pubdir_free(req->http_req); | 663 gg_change_passwd_free(req->http_req); |
664 g_free(req->new_password); | 664 g_free(req->new_password); |
665 g_free(req); | 665 g_free(req); |
666 } | 666 } |
667 | 667 |
668 static void ggp_callback_change_passwd_ok(PurpleConnection *gc, | 668 static void ggp_callback_change_passwd_ok(PurpleConnection *gc, |