aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-30 16:30:58 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-30 16:30:58 +0800
commit6ed4050d05c965e07dbc703890e3bcd171f315ce (patch)
treebeac39c072e04af0d5e07b23b06acc4596eb1648 /modules/mail
parent9f9eb9b0a2e1a1a3b10d489c7b24ba0b8ab7b12f (diff)
downloadgsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar.gz
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar.bz2
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar.lz
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar.xz
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.tar.zst
gsoc2013-evolution-6ed4050d05c965e07dbc703890e3bcd171f315ce.zip
Add option "Check for new messages in all active accounts"
As a follow-up for bug #633949
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-settings.c4
-rw-r--r--modules/mail/em-mailer-prefs.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-settings.c b/modules/mail/e-mail-shell-settings.c
index d6e9aabbba..1b70289ded 100644
--- a/modules/mail/e-mail-shell-settings.c
+++ b/modules/mail/e-mail-shell-settings.c
@@ -113,6 +113,10 @@ e_mail_shell_settings_init (EShellBackend *shell_backend)
"/apps/evolution/mail/send_recv_on_start");
e_shell_settings_install_property_for_key (
+ "mail-check-all-on-start",
+ "/apps/evolution/mail/send_recv_all_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 1913f8e388..267195bfbb 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -839,6 +839,18 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
+ widget = e_builder_get_widget (prefs->builder, "chkCheckMailInAllOnStart");
+ g_object_bind_property (
+ shell_settings, "mail-check-all-on-start",
+ widget, "active",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
+ shell_settings, "mail-check-on-start",
+ widget, "sensitive",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
+
/* Message Display */
widget = e_builder_get_widget (prefs->builder, "view-check");