aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-10-06 04:44:51 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-06 04:44:51 +0800
commitc0672f92d1c0ca7fa0637074da13cac968786b09 (patch)
tree278644b51d9c36ad6216ae0dab38f65e82b06dab /mail/mail-accounts.c
parentcb48c65b206a7c30e9c116ab5c047f22fe39837b (diff)
downloadgsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar.gz
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar.bz2
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar.lz
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar.xz
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.tar.zst
gsoc2013-evolution-c0672f92d1c0ca7fa0637074da13cac968786b09.zip
Add toggle button to config menu to turn the "confirm sending unwanted
2001-10-05 Jon Trowbridge <trow@ximian.com> * mail-config.glade: Add toggle button to config menu to turn the "confirm sending unwanted HTML" dialog on/off. (Bug 10794) * mail-accounts.c (construct): Make said toggle button actually work. svn path=/trunk/; revision=13466
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index bd125de1fa..a650d53336 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -686,6 +686,12 @@ prompt_bcc_only_toggled (GtkWidget *toggle, gpointer data)
mail_config_set_prompt_only_bcc (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle)));
}
+static void
+prompt_unwanted_html_toggled (GtkWidget *toggle, gpointer data)
+{
+ mail_config_set_confirm_unwanted_html (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle)));
+}
+
#if 0
/* Note: Please see construct() for a reason as to why these 2 options are disabled */
static void
@@ -876,6 +882,11 @@ construct (MailAccountsDialog *dialog)
gtk_toggle_button_set_active (dialog->prompt_bcc_only, mail_config_get_prompt_only_bcc ());
gtk_signal_connect (GTK_OBJECT (dialog->prompt_bcc_only), "toggled",
GTK_SIGNAL_FUNC (prompt_bcc_only_toggled), dialog);
+
+ dialog->prompt_unwanted_html = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkPromptWantHTML"));
+ gtk_toggle_button_set_active (dialog->prompt_unwanted_html, mail_config_get_confirm_unwanted_html ());
+ gtk_signal_connect (GTK_OBJECT (dialog->prompt_unwanted_html), "toggled",
+ GTK_SIGNAL_FUNC (prompt_unwanted_html_toggled), dialog);
/* Other page */
dialog->pgp_path = GNOME_FILE_ENTRY (glade_xml_get_widget (gui, "filePgpPath"));