diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-10 05:35:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-10 05:35:11 +0800 |
commit | 29315f8157b6cab9b8876eeea92356241970a536 (patch) | |
tree | e67e7210964457abc89897ca1dd826616f511c6b /mail/mail-accounts.c | |
parent | ebd5da4c959c595723d3d4d48cf8ef0978162177 (diff) | |
download | gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.tar.gz gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.tar.zst gsoc2013-evolution-29315f8157b6cab9b8876eeea92356241970a536.zip |
Update to pass in the `remember' argument when creating a new pgp context.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Update to pass
in the `remember' argument when creating a new pgp context.
(mail_crypto_pgp_mime_part_verify): Same.
(mail_crypto_pgp_mime_part_encrypt): And here...
(mail_crypto_pgp_mime_part_decrypt): And finally here.
* mail-config.c (mail_config_get_remember_pgp_passphrase): New.
(mail_config_set_remember_pgp_passphrase): New.
(config_read): Read in the "remember passphrase" value.
(mail_config_write_on_exit): Save the remember-passphrase value.
* mail-accounts.c (construct): Allow the user to set "Remember PGP
Passphrase".
(remember_pgp_passphrase_toggled): Set the toggle state.
svn path=/trunk/; revision=10933
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index edb147f49d..e4e02fe61d 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -648,6 +648,12 @@ empty_trash_toggled (GtkWidget *toggle, gpointer data) } static void +remember_pgp_passphrase_toggled (GtkWidget *toggle, gpointer data) +{ + mail_config_set_remember_pgp_passphrase (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle))); +} + +static void prompt_empty_subject_toggled (GtkWidget *toggle, gpointer data) { mail_config_set_prompt_empty_subject (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle))); @@ -797,6 +803,11 @@ construct (MailAccountsDialog *dialog) gtk_signal_connect (GTK_OBJECT (gnome_file_entry_gtk_entry (dialog->pgp_path)), "changed", GTK_SIGNAL_FUNC (pgp_path_changed), dialog); + dialog->remember_passwd = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkRememberPGPPassphrase")); + gtk_toggle_button_set_active (dialog->remember_passwd, mail_config_get_remember_pgp_passphrase ()); + gtk_signal_connect (GTK_OBJECT (dialog->remember_passwd), "toggled", + GTK_SIGNAL_FUNC (remember_pgp_passphrase_toggled), dialog); + dialog->charset = GTK_OPTION_MENU (glade_xml_get_widget (gui, "omenuCharset")); menu = e_charset_picker_new (mail_config_get_default_charset ()); gtk_option_menu_set_menu (dialog->charset, menu); |