aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-31 01:34:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-31 01:34:33 +0800
commit59abc016932b2efae32c93d2767f0dfa06a79134 (patch)
treed840cbfd145df3f3681b55596b6dfcb5d74f35ab /mail/mail-account-gui.c
parent101e668310971c48e6a5f760c47327a7ccf95b50 (diff)
downloadgsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar.gz
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar.bz2
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar.lz
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar.xz
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.tar.zst
gsoc2013-evolution-59abc016932b2efae32c93d2767f0dfa06a79134.zip
Restore old security settings from the saved configuration. Fixes bug
2001-07-30 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Restore old security settings from the saved configuration. Fixes bug #5710. svn path=/trunk/; revision=11479
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index 34ed21c5f8..19d7789742 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -1253,9 +1253,15 @@ mail_account_gui_new (MailConfigAccount *account)
/* Security */
gui->pgp_key = GTK_ENTRY (glade_xml_get_widget (gui->xml, "pgp_key"));
+ if (account->pgp_key)
+ e_utf8_gtk_entry_set_text (gui->pgp_key, account->pgp_key);
gui->pgp_encrypt_to_self = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "pgp_encrypt_to_self"));
+ gtk_toggle_button_set_active (gui->pgp_encrypt_to_self, account->pgp_encrypt_to_self);
gui->smime_key = GTK_ENTRY (glade_xml_get_widget (gui->xml, "smime_key"));
+ if (account->smime_key)
+ e_utf8_gtk_entry_set_text (gui->smime_key, account->smime_key);
gui->smime_encrypt_to_self = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "smime_encrypt_to_self"));
+ gtk_toggle_button_set_active (gui->smime_encrypt_to_self, account->smime_encrypt_to_self);
#ifndef HAVE_NSS
{
@@ -1263,7 +1269,7 @@ mail_account_gui_new (MailConfigAccount *account)
GtkWidget *frame;
frame = glade_xml_get_widget (gui->xml, "smime_frame");
- gtk_widget_hide (frame);
+ gtk_widget_set_sensitive (frame, FALSE);
}
#endif