aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-30 02:48:58 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-30 02:48:58 +0800
commita3705d79b037fa61a94d0863174e2688d7bdc229 (patch)
tree1d2148398ae4b69f72c71a9d84de36d2e09b7580 /modules
parent3047dcb784b70adc4a00af644278bf680229462f (diff)
downloadgsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar.gz
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar.bz2
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar.lz
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar.xz
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.tar.zst
gsoc2013-evolution-a3705d79b037fa61a94d0863174e2688d7bdc229.zip
Bug #633949 - Add an option to disable new e-mail check at startup
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-settings.c4
-rw-r--r--modules/mail/em-mailer-prefs.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-settings.c b/modules/mail/e-mail-shell-settings.c
index 3e55a98aa8..d6e9aabbba 100644
--- a/modules/mail/e-mail-shell-settings.c
+++ b/modules/mail/e-mail-shell-settings.c
@@ -109,6 +109,10 @@ e_mail_shell_settings_init (EShellBackend *shell_backend)
"/apps/evolution/mail/junk/check_incoming");
e_shell_settings_install_property_for_key (
+ "mail-check-on-start",
+ "/apps/evolution/mail/send_recv_on_start");
+
+ e_shell_settings_install_property_for_key (
"mail-citation-color",
"/apps/evolution/mail/display/citation_colour");
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c
index b03ac60b0c..cae9251158 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -832,6 +832,13 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
/* General tab */
+ widget = e_builder_get_widget (prefs->builder, "chkCheckMailOnStart");
+ g_object_bind_property (
+ shell_settings, "mail-check-on-start",
+ widget, "active",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
+
/* Message Display */
widget = e_builder_get_widget (prefs->builder, "view-check");