[gnumeric] conf: make sure configuration monitors see the right values.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] conf: make sure configuration monitors see the right values.
- Date: Thu, 25 Mar 2010 14:22:21 +0000 (UTC)
commit d00f99adec9182c74af63d545fdd9d47220b7286
Author: Morten Welinder <terra gnome org>
Date: Thu Mar 25 10:21:57 2010 -0400
conf: make sure configuration monitors see the right values.
src/gnumeric-gconf.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnumeric-gconf.c b/src/gnumeric-gconf.c
index 3c738ae..5ec1a7b 100644
--- a/src/gnumeric-gconf.c
+++ b/src/gnumeric-gconf.c
@@ -287,8 +287,9 @@ set_string (struct cb_watch_string *watch, const char *x)
MAYBE_DEBUG_SET (watch->key);
xc = g_strdup (x);
watch->var = xc;
- go_conf_set_string (root, watch->key, xc);
+ /* Update pool before setting so monitors see the right value. */
g_hash_table_replace (string_pool, (gpointer)watch->key, xc);
+ go_conf_set_string (root, watch->key, xc);
schedule_sync ();
}
@@ -343,6 +344,7 @@ set_string_list (struct cb_watch_string_list *watch, GSList *x)
MAYBE_DEBUG_SET (watch->key);
watch->var = x;
+ /* Update pool before setting so monitors see the right value. */
g_hash_table_replace (string_list_pool, (gpointer)watch->key, x);
go_conf_set_str_list (root, watch->key, x);
schedule_sync ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]