From 11d2490e5a1cb82e4fab263db199e666764840df Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 5 Jan 2011 17:42:04 +0100 Subject: Bug #637906 - Don't ask again when sending to non-mail recipients --- modules/mail/e-mail-shell-settings.c | 4 ++++ modules/mail/em-composer-prefs.c | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'modules') diff --git a/modules/mail/e-mail-shell-settings.c b/modules/mail/e-mail-shell-settings.c index 18e8407bba..9f024696dd 100644 --- a/modules/mail/e-mail-shell-settings.c +++ b/modules/mail/e-mail-shell-settings.c @@ -288,6 +288,10 @@ e_mail_shell_settings_init (EShellBackend *shell_backend) "composer-prompt-empty-subject", "/apps/evolution/mail/prompts/empty_subject"); + e_shell_settings_install_property_for_key ( + "composer-prompt-send-invalid-recip", + "/apps/evolution/mail/prompts/send_invalid_recip"); + e_shell_settings_install_property_for_key ( "composer-reply-start-bottom", "/apps/evolution/mail/composer/reply_start_bottom"); diff --git a/modules/mail/em-composer-prefs.c b/modules/mail/em-composer-prefs.c index b4d0513edb..e0dd2f17fd 100644 --- a/modules/mail/em-composer-prefs.c +++ b/modules/mail/em-composer-prefs.c @@ -411,6 +411,13 @@ em_composer_prefs_construct (EMComposerPrefs *prefs, G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + widget = e_builder_get_widget (prefs->builder, "chkPromptSendInvalidRecip"); + g_object_bind_property ( + shell_settings, "composer-prompt-send-invalid-recip", + widget, "active", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); + widget = e_builder_get_widget (prefs->builder, "chkAutoSmileys"); g_object_bind_property ( shell_settings, "composer-magic-smileys", -- cgit