From 42a08a1b798ab23c5bc76679cbb319df271cdac6 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 30 Mar 2004 09:28:03 +0000 Subject: add spellLiveToggled signal 2004-03-30 Radek Doulik * mail-config.glade: add spellLiveToggled signal * em-composer-prefs.c (em_composer_prefs_construct): fix typo, call toggle_button_init on prefs->spell_check instead of againg on prefs->auto_smileys (spell_setup): connect spellLiveToggled signal Fixes #55964 svn path=/trunk/; revision=25241 --- mail/em-composer-prefs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/em-composer-prefs.c') diff --git a/mail/em-composer-prefs.c b/mail/em-composer-prefs.c index 0276decfc8..327b4d1bc3 100644 --- a/mail/em-composer-prefs.c +++ b/mail/em-composer-prefs.c @@ -665,6 +665,12 @@ spell_color_set (GtkWidget *widget, guint r, guint g, guint b, guint a, gpointer spell_changed (user_data); } +static void +spell_live_toggled (GtkWidget *widget, gpointer user_data) +{ + spell_changed (user_data); +} + static void spell_language_selection_changed (GtkTreeSelection *selection, EMComposerPrefs *prefs) { @@ -747,6 +753,7 @@ spell_setup (EMComposerPrefs *prefs) glade_xml_signal_connect_data (prefs->gui, "spellColorSet", G_CALLBACK (spell_color_set), prefs); glade_xml_signal_connect_data (prefs->gui, "spellLanguageEnable", GTK_SIGNAL_FUNC (spell_language_enable), prefs); + glade_xml_signal_connect_data (prefs->gui, "spellLiveToggled", G_CALLBACK (spell_live_toggled), prefs); g_signal_connect (prefs->language, "button_press_event", G_CALLBACK (spell_language_button_press), prefs); } @@ -853,7 +860,7 @@ em_composer_prefs_construct (EMComposerPrefs *prefs) FALSE, G_CALLBACK (toggle_button_toggled), prefs); prefs->spell_check = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkEnableSpellChecking")); - toggle_button_init (prefs->auto_smileys, prefs->gconf, + toggle_button_init (prefs->spell_check, prefs->gconf, "/apps/evolution/mail/composer/inline_spelling", FALSE, G_CALLBACK (toggle_button_toggled), prefs); -- cgit