--- a/libpurple/account.h Tue Apr 10 22:23:13 2007 +0000 +++ b/libpurple/account.h Sun Apr 15 00:14:34 2007 +0000 @@ -29,6 +29,7 @@ #include <glib-object.h> #include <glib.h> +#include <glib-object.h> typedef struct _PurpleAccountUiOps PurpleAccountUiOps; typedef struct _PurpleAccount PurpleAccount; @@ -223,6 +224,18 @@ void purple_account_request_close(void *ui_handle); /** + * Requests a password from the user for the account. Does not set the + * account password on success; do that in ok_cb if desired. + * + * @param account The account to request the password for. + * @param ok_cb The callback for the OK button. + * @param cancel_cb The callback for the cancel button. + * @param user_data User data to be passed into callbacks. + */ +void purple_account_request_password(PurpleAccount *account, GCallback ok_cb, + GCallback cancel_cb, void *user_data); + +/** * Requests information from the user to change the account's password. * * @param account The account to change the password on.