--- a/pidgin/gtkaccount.c Wed Jun 15 00:34:24 2022 -0500
+++ b/pidgin/gtkaccount.c Wed Jun 15 00:51:48 2022 -0500
@@ -80,7 +80,6 @@
GtkWidget *protocol_menu;
GtkWidget *username_entry;
GdkRGBA username_entry_hint_color;
@@ -928,8 +927,6 @@
purple_signals_disconnect_by_handle(dialog);
- purple_str_wipe(dialog->password);
@@ -1173,10 +1170,9 @@
-pidgin_account_dialog_show_continue(PidginAccountDialogType type,
- PurpleAccount *account,
+pidgin_account_dialog_show(PidginAccountDialogType type, + PurpleAccount *account) AccountPrefsDialog *dialog;
@@ -1192,7 +1188,6 @@
dialog->account = account;
- dialog->password = g_strdup(password);
dialog->sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
@@ -1273,55 +1268,6 @@
gtk_widget_grab_focus(dialog->protocol_menu);
-pidgin_account_dialog_read_password_cb(GObject *obj, GAsyncResult *res,
- PurpleCredentialManager *manager = PURPLE_CREDENTIAL_MANAGER(obj);
- PidginAccountDialogShowData *d = (PidginAccountDialogShowData *)data;
- password = purple_credential_manager_read_password_finish(manager, res,
- purple_debug_warning("gtkaccount", "failed to read password: %s",
- pidgin_account_dialog_show_continue(d->type, d->account, password);
-pidgin_account_dialog_show(PidginAccountDialogType type, PurpleAccount *account)
- PurpleCredentialManager *manager = NULL;
- manager = purple_credential_manager_get_default();
- if(PURPLE_IS_ACCOUNT(account)) {
- /* this is kind of dangerous, but it's no worse than the old version.
- * Regardless this dialog needs a lot of TLC.
- PidginAccountDialogShowData *data = NULL;
- data = g_new0(PidginAccountDialogShowData, 1);
- data->account = account;
- purple_credential_manager_read_password_async(manager, account, NULL,
- pidgin_account_dialog_read_password_cb,
- pidgin_account_dialog_show_continue(type, account, NULL);
/**************************************************************************
**************************************************************************/