aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-10 03:24:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-10 03:24:06 +0800
commitbfa7f88ced7715b3cdabb038e6f57c9784d0a8eb (patch)
treed1ef8996e7195b24dfea1a6012836b1347e844f4 /mail/mail-account-gui.c
parent6b0d359b25ee9a1a61c3c71a8babc9c894c30156 (diff)
downloadgsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar.gz
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar.bz2
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar.lz
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar.xz
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.tar.zst
gsoc2013-evolution-bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb.zip
Save the pgp and smime always-sign options.
2001-08-09 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Save the pgp and smime always-sign options. * mail-config.c (account_copy): Copy the always-sign options over too. svn path=/trunk/; revision=11841
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 05d2674699..06fe1e16fe 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -1266,11 +1266,15 @@ mail_account_gui_new (MailConfigAccount *account)
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->pgp_always_sign = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "pgp_always_sign"));
+ gtk_toggle_button_set_active (gui->pgp_always_sign, account->pgp_always_sign);
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);
+ gui->smime_always_sign = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "smime_always_sign"));
+ gtk_toggle_button_set_active (gui->smime_always_sign, account->smime_always_sign);
#ifndef HAVE_NSS
{
@@ -1565,7 +1569,7 @@ mail_account_gui_save (MailAccountGui *gui)
account->name = e_utf8_gtk_entry_get_text (gui->account_name);
if (gtk_toggle_button_get_active (gui->default_account))
mail_config_set_default_account (account);
-
+
/* construct the identity */
identity_destroy (account->id);
account->id = g_new0 (MailConfigIdentity, 1);
@@ -1602,9 +1606,11 @@ mail_account_gui_save (MailAccountGui *gui)
g_free (account->pgp_key);
account->pgp_key = e_utf8_gtk_entry_get_text (gui->pgp_key);
account->pgp_encrypt_to_self = gtk_toggle_button_get_active (gui->pgp_encrypt_to_self);
+ account->pgp_always_sign = gtk_toggle_button_get_active (gui->pgp_always_sign);
g_free (account->smime_key);
account->smime_key = e_utf8_gtk_entry_get_text (gui->smime_key);
account->smime_encrypt_to_self = gtk_toggle_button_get_active (gui->smime_encrypt_to_self);
+ account->smime_always_sign = gtk_toggle_button_get_active (gui->smime_always_sign);
mail_autoreceive_setup ();