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



commit a41a43d4d0179257c774beb5505b1fbee3132545
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 cf142d4..b9f5486 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -484,9 +484,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 ();
@@ -510,6 +507,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]