aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-mailer-prefs.c13
2 files changed, 19 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e453114742..ed8151e637 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-14 Radek Doulik <rodo@ximian.com>
+
+ * em-mailer-prefs.c (em_mailer_prefs_construct): the check button
+ label has now opposite meaning (after UI changes), call
+ toggle_button_init with 'not' parameter set to TRUE
+ (toggle_button_toggled_not): new helper function, sets negative
+ value to gconf bool key
+
2004-06-14 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (rule_changed): don't check rule->source, its
diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c
index ebb1742d05..0232ff6707 100644
--- a/mail/em-mailer-prefs.c
+++ b/mail/em-mailer-prefs.c
@@ -494,6 +494,15 @@ toggle_button_toggled (GtkToggleButton *toggle, EMMailerPrefs *prefs)
}
static void
+toggle_button_toggled_not (GtkToggleButton *toggle, EMMailerPrefs *prefs)
+{
+ const char *key;
+
+ key = g_object_get_data ((GObject *) toggle, "key");
+ gconf_client_set_bool (prefs->gconf, key, !gtk_toggle_button_get_active (toggle), NULL);
+}
+
+static void
custom_font_changed (GtkToggleButton *toggle, EMMailerPrefs *prefs)
{
gboolean use_custom;
@@ -952,9 +961,9 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs)
G_CALLBACK (toggle_button_toggled));
prefs->sa_local_tests_only = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkSALocalTestsOnly"));
- toggle_button_init (prefs, prefs->sa_local_tests_only, FALSE,
+ toggle_button_init (prefs, prefs->sa_local_tests_only, TRUE,
"/apps/evolution/mail/junk/sa/local_only",
- G_CALLBACK (toggle_button_toggled));
+ G_CALLBACK (toggle_button_toggled_not));
}
GtkWidget *