diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-06 03:17:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-06 03:17:22 +0800 |
commit | 0f37cc04029ce2c5a89043fe59f5355a98f55a9e (patch) | |
tree | a275cb230dc3ca51b183a6f50bee0fbda89b75a1 /mail/mail-accounts.c | |
parent | 92f47211fe15e0a2b3c489c022f42322063ca049 (diff) | |
download | gsoc2013-evolution-0f37cc04029ce2c5a89043fe59f5355a98f55a9e.tar.gz gsoc2013-evolution-0f37cc04029ce2c5a89043fe59f5355a98f55a9e.tar.zst gsoc2013-evolution-0f37cc04029ce2c5a89043fe59f5355a98f55a9e.zip |
Add a checkbox for prompting when sending a message with an empty subject.
2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Add a checkbox for prompting when
sending a message with an empty subject.
* mail-ops.c (mail_send_message): If filtering fails, return right
away.
svn path=/trunk/; revision=10821
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 f084d163e7..edb147f49d 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -648,6 +648,12 @@ empty_trash_toggled (GtkWidget *toggle, gpointer data) } 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))); +} + +static void forward_style_activated (GtkWidget *item, gpointer data) { int style = GPOINTER_TO_INT (data); @@ -802,6 +808,11 @@ construct (MailAccountsDialog *dialog) gtk_signal_connect (GTK_OBJECT (dialog->empty_trash), "toggled", GTK_SIGNAL_FUNC (empty_trash_toggled), dialog); + dialog->prompt_empty_subject = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkPromptEmptySubject")); + gtk_toggle_button_set_active (dialog->prompt_empty_subject, mail_config_get_prompt_empty_subject ()); + gtk_signal_connect (GTK_OBJECT (dialog->prompt_empty_subject), "toggled", + GTK_SIGNAL_FUNC (prompt_empty_subject_toggled), dialog); + /* now to fill in the clists */ dialog->accounts_row = -1; dialog->accounts = mail_config_get_accounts (); |