[evolution/webkit-composer: 100/231] Bug #689630 - Spell check languages are not remembered
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 100/231] Bug #689630 - Spell check languages are not remembered
- Date: Fri, 13 Sep 2013 14:14:23 +0000 (UTC)
commit af06b50623ebf1c8e6927ef33fb84efc6aee1198
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 c09f3ac..cf30a7b 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -392,9 +392,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 ();
@@ -418,6 +415,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]