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



commit 00317ac661e2dbaeb62d7e29725946fa5497d303
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 1902895..fbbc9cd 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -1134,9 +1134,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 ();
@@ -1160,6 +1157,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_settings_bind (


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