[gnumeric] Conf: after this, only gnumeric-gconf.c calls go_conf_set_...
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Conf: after this, only gnumeric-gconf.c calls go_conf_set_...
- Date: Mon, 29 Jun 2009 02:38:15 +0000 (UTC)
commit ec18a0e74c15f20e0e1c3ec49da86edfd9fcaa6f
Author: Morten Welinder <terra gnome org>
Date: Sun Jun 28 22:03:18 2009 -0400
Conf: after this, only gnumeric-gconf.c calls go_conf_set_...
src/tools/auto-correct.c | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
---
diff --git a/src/tools/auto-correct.c b/src/tools/auto-correct.c
index d25d08d..f0b0e66 100644
--- a/src/tools/auto-correct.c
+++ b/src/tools/auto-correct.c
@@ -109,22 +109,15 @@ autocorrect_init (void)
void
autocorrect_store_config (void)
{
- GOConfNode *node = go_conf_get_node (gnm_conf_get_root (), AUTOCORRECT_DIRECTORY);
-
- go_conf_set_bool (node, AUTOCORRECT_INIT_CAPS,
- autocorrect.init_caps);
- go_conf_set_str_list (node, AUTOCORRECT_INIT_CAPS_LIST,
- autocorrect.exceptions.init_caps);
- go_conf_set_bool (node, AUTOCORRECT_FIRST_LETTER,
- autocorrect.first_letter);
- go_conf_set_str_list (node, AUTOCORRECT_FIRST_LETTER_LIST,
- autocorrect.exceptions.first_letter);
- go_conf_set_bool (node, AUTOCORRECT_NAMES_OF_DAYS,
- autocorrect.names_of_days);
- go_conf_set_bool (node, AUTOCORRECT_REPLACE,
- autocorrect.replace);
- go_conf_sync (node);
- go_conf_free_node (node);
+ gnm_conf_set_autocorrect_init_caps (autocorrect.init_caps);
+ gnm_conf_set_autocorrect_init_caps_list (autocorrect.exceptions.init_caps);
+
+ gnm_conf_set_autocorrect_first_letter (autocorrect.first_letter);
+ gnm_conf_set_autocorrect_first_letter_list (autocorrect.exceptions.init_caps);
+
+ gnm_conf_set_autocorrect_names_of_days (autocorrect.names_of_days);
+
+ gnm_conf_set_autocorrect_replace (autocorrect.replace);
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]