From c0672f92d1c0ca7fa0637074da13cac968786b09 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 5 Oct 2001 20:44:51 +0000 Subject: Add toggle button to config menu to turn the "confirm sending unwanted 2001-10-05 Jon Trowbridge * 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 --- mail/mail-accounts.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mail/mail-accounts.c') 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")); -- cgit v1.2.3