aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-06-14 21:35:14 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-06-14 21:35:14 +0800
commit05b9776f7ecd3f7040c3c1a15dd6c82bc47740c7 (patch)
tree00d412615f18086670a6287c5d0788791613728a
parent2c166904b9f5bd317fb832e841872322d004ef59 (diff)
downloadgsoc2013-evolution-05b9776f7ecd3f7040c3c1a15dd6c82bc47740c7.tar.gz
gsoc2013-evolution-05b9776f7ecd3f7040c3c1a15dd6c82bc47740c7.tar.zst
gsoc2013-evolution-05b9776f7ecd3f7040c3c1a15dd6c82bc47740c7.zip
the check button label has now opposite meaning (after UI changes), call
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 svn path=/trunk/; revision=26334
-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 *