Mercurial > pidgin.yaz
comparison libpurple/account.c @ 16442:08db93bbd798
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Thu, 26 Apr 2007 12:25:49 +0000 |
parents | ac1a32ebd62c |
children | 5e47b3427b28 |
comparison
equal
deleted
inserted
replaced
16438:a46a0362dc34 | 16442:08db93bbd798 |
---|---|
966 primary, | 966 primary, |
967 NULL, | 967 NULL, |
968 fields, | 968 fields, |
969 _("OK"), ok_cb, | 969 _("OK"), ok_cb, |
970 _("Cancel"), cancel_cb, | 970 _("Cancel"), cancel_cb, |
971 account, NULL, NULL, | |
971 user_data); | 972 user_data); |
972 g_free(primary); | 973 g_free(primary); |
973 } | 974 } |
974 | 975 |
975 void | 976 void |
1215 _("Please enter your current password and your " | 1216 _("Please enter your current password and your " |
1216 "new password."), | 1217 "new password."), |
1217 fields, | 1218 fields, |
1218 _("OK"), G_CALLBACK(change_password_cb), | 1219 _("OK"), G_CALLBACK(change_password_cb), |
1219 _("Cancel"), NULL, | 1220 _("Cancel"), NULL, |
1221 account, NULL, NULL, | |
1220 account); | 1222 account); |
1221 } | 1223 } |
1222 | 1224 |
1223 static void | 1225 static void |
1224 set_user_info_cb(PurpleAccount *account, const char *user_info) | 1226 set_user_info_cb(PurpleAccount *account, const char *user_info) |
1248 purple_request_input(gc, _("Set User Info"), primary, NULL, | 1250 purple_request_input(gc, _("Set User Info"), primary, NULL, |
1249 purple_account_get_user_info(account), | 1251 purple_account_get_user_info(account), |
1250 TRUE, FALSE, ((gc != NULL) && | 1252 TRUE, FALSE, ((gc != NULL) && |
1251 (gc->flags & PURPLE_CONNECTION_HTML) ? "html" : NULL), | 1253 (gc->flags & PURPLE_CONNECTION_HTML) ? "html" : NULL), |
1252 _("Save"), G_CALLBACK(set_user_info_cb), | 1254 _("Save"), G_CALLBACK(set_user_info_cb), |
1253 _("Cancel"), NULL, account); | 1255 _("Cancel"), NULL, |
1256 account, NULL, NULL, | |
1257 account); | |
1254 } | 1258 } |
1255 | 1259 |
1256 void | 1260 void |
1257 purple_account_set_username(PurpleAccount *account, const char *username) | 1261 purple_account_set_username(PurpleAccount *account, const char *username) |
1258 { | 1262 { |