diff options
author | Radek Doulik <rodo@ximian.com> | 2004-06-14 21:35:14 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-06-14 21:35:14 +0800 |
commit | 05b9776f7ecd3f7040c3c1a15dd6c82bc47740c7 (patch) | |
tree | 00d412615f18086670a6287c5d0788791613728a /mail/em-mailer-prefs.c | |
parent | 2c166904b9f5bd317fb832e841872322d004ef59 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'mail/em-mailer-prefs.c')
-rw-r--r-- | mail/em-mailer-prefs.c | 13 |
1 files changed, 11 insertions, 2 deletions
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 * |