diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-10 13:57:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-10 13:57:42 +0000 |
commit | bb4d7566c29162976f1d47ce51c1ffd1ce2041d6 (patch) | |
tree | 796489749de7f4b7bc5db0376f800df0ad434732 /src/fe-common/core | |
parent | afc4fbc2238f9b76df9e704446ec9be64ee2f57b (diff) | |
download | irssi-bb4d7566c29162976f1d47ce51c1ffd1ce2041d6.zip |
iconfig's caching was a bit buggy - it didn't notice if some config node was
removed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@213 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 6 | ||||
-rw-r--r-- | src/fe-common/core/keyboard.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 41467e7c..307f9f02 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -46,9 +46,9 @@ static void hilight_add_config(HILIGHT_REC *rec) node = iconfig_node_traverse("(hilights", TRUE); node = config_node_section(node, NULL, NODE_TYPE_BLOCK); - config_node_set_str(node, "text", rec->text); + iconfig_node_set_str(node, "text", rec->text); if (rec->level > 0) config_node_set_int(node, "level", rec->level); - if (rec->color) config_node_set_str(node, "color", rec->color); + if (rec->color) iconfig_node_set_str(node, "color", rec->color); if (rec->nickmask) config_node_set_bool(node, "nickmask", TRUE); if (rec->fullword) config_node_set_bool(node, "fullword", TRUE); if (rec->regexp) config_node_set_bool(node, "regexp", TRUE); @@ -66,7 +66,7 @@ static void hilight_remove_config(HILIGHT_REC *rec) g_return_if_fail(rec != NULL); node = iconfig_node_traverse("hilights", FALSE); - if (node != NULL) config_node_list_remove(node, g_slist_index(hilights, rec)); + if (node != NULL) iconfig_node_list_remove(node, g_slist_index(hilights, rec)); } static void hilight_destroy(HILIGHT_REC *rec) diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index 6881d77a..854d4d7e 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -205,7 +205,7 @@ void keyboard_save(void) GSList *tmp, *tmp2; /* remove old keyboard settings */ - config_node_set_str(NULL, "(keyboard", NULL); + iconfig_node_set_str(NULL, "(keyboard", NULL); keyboard = iconfig_node_traverse("(keyboard", TRUE); for (tmp = keyinfos; tmp != NULL; tmp = tmp->next) { @@ -217,8 +217,8 @@ void keyboard_save(void) listnode = config_node_section(node, NULL, NODE_TYPE_BLOCK); if (key->data != NULL) - config_node_set_str(listnode, "data", key->data); - config_node_set_str(listnode, "key", key->key); + iconfig_node_set_str(listnode, "data", key->data); + iconfig_node_set_str(listnode, "key", key->key); } } } |