[evolution/webkit-composer] Bug #689630 - Spell check languages are not remembered



commit 83d821a658014f0f8d461afea116790f69a1bff0
Author: Dan VrÃtil <dvratil redhat com>
Date:   Sun Dec 9 22:12:49 2012 +0100

    Bug #689630 - Spell check languages are not remembered
    
    Connect to row-changed after the model is populated, otherwise
    populating the model causes the GSettings value to be overwritten
    with an empty list of spell check langs.

 modules/mail/em-composer-prefs.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/modules/mail/em-composer-prefs.c b/modules/mail/em-composer-prefs.c
index 2ae9a78..1a93b7b 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -481,9 +481,6 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
 	view = GTK_TREE_VIEW (widget);
 	store = gtk_list_store_new (
 		3, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_POINTER);
-	g_signal_connect_swapped (
-		store, "row-changed",
-		G_CALLBACK (spell_language_save), prefs);
 	prefs->language_model = GTK_TREE_MODEL (store);
 	gtk_tree_view_set_model (view, prefs->language_model);
 	renderer = gtk_cell_renderer_toggle_new ();
@@ -507,6 +504,11 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
 
 	spell_setup (prefs);
 
+	g_signal_connect_swapped (
+		store, "row-changed",
+		G_CALLBACK (spell_language_save), prefs);
+
+
 	/* Forwards and Replies */
 	widget = e_builder_get_widget (prefs->builder, "comboboxForwardStyle");
 	g_object_bind_property (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]