aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-mailer-prefs.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-01-13 01:11:18 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-13 01:11:18 +0800
commit1c4599a82920d2ca4144517a32af9dfd453435be (patch)
treef7822948182b6906109a3b038e194b06a06522f0 /mail/em-mailer-prefs.c
parent5c78763efda4c70010f70350533e25b7c9d1c87f (diff)
downloadgsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar.gz
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar.bz2
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar.lz
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar.xz
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.tar.zst
gsoc2013-evolution-1c4599a82920d2ca4144517a32af9dfd453435be.zip
added SA prefs (mail_session_get_sa_local_only): new helper method
2004-01-12 Radek Doulik <rodo@ximian.com> * mail-session.c: added SA prefs (mail_session_get_sa_local_only): new helper method (mail_session_set_sa_local_only): ditto (mail_session_get_sa_use_daemon): ditto (mail_session_set_sa_use_daemon): ditto (mail_session_check_junk_notify): fix the key comparison (mail_session_init): add gconf dir so that we get notified * mail-config.glade: added SA preferences * em-mailer-prefs.c (em_mailer_prefs_construct): added more junk prefs (em_mailer_prefs_apply): ditto * em-junk-filter.c: use preferences svn path=/trunk/; revision=24174
Diffstat (limited to 'mail/em-mailer-prefs.c')
-rw-r--r--mail/em-mailer-prefs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c
index 8c6cbabec1..d5a80beef3 100644
--- a/mail/em-mailer-prefs.c
+++ b/mail/em-mailer-prefs.c
@@ -652,6 +652,16 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs)
bool = gconf_client_get_bool (prefs->gconf, "/apps/evolution/mail/junk/check_incoming", NULL);
gtk_toggle_button_set_active (prefs->check_incoming, bool);
g_signal_connect (prefs->check_incoming, "toggled", G_CALLBACK (settings_changed), prefs);
+
+ prefs->sa_local_tests_only = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkSALocalTestsOnly"));
+ bool = gconf_client_get_bool (prefs->gconf, "/apps/evolution/mail/junk/sa/local_only", NULL);
+ gtk_toggle_button_set_active (prefs->sa_local_tests_only, bool);
+ g_signal_connect (prefs->sa_local_tests_only, "toggled", G_CALLBACK (settings_changed), prefs);
+
+ prefs->sa_use_daemon = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkSAUseDaemon"));
+ bool = gconf_client_get_bool (prefs->gconf, "/apps/evolution/mail/junk/sa/use_daemon", NULL);
+ gtk_toggle_button_set_active (prefs->sa_use_daemon, bool);
+ g_signal_connect (prefs->sa_use_daemon, "toggled", G_CALLBACK (settings_changed), prefs);
}
@@ -792,6 +802,10 @@ em_mailer_prefs_apply (EMMailerPrefs *prefs)
/* junk prefs */
gconf_client_set_bool (prefs->gconf, "/apps/evolution/mail/junk/check_incoming",
gtk_toggle_button_get_active (prefs->check_incoming), NULL);
+ gconf_client_set_bool (prefs->gconf, "/apps/evolution/mail/junk/sa/local_only",
+ gtk_toggle_button_get_active (prefs->sa_local_tests_only), NULL);
+ gconf_client_set_bool (prefs->gconf, "/apps/evolution/mail/junk/sa/use_daemon",
+ gtk_toggle_button_get_active (prefs->sa_use_daemon), NULL);
gconf_client_suggest_sync (prefs->gconf, NULL);
}