summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-10 15:00:15 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-10 15:00:15 +0000
commit57629dcadcfca4a0f62e921a76d922f2a4dae0f3 (patch)
tree15b7cb23c9e4f0b98b6259cf76ff42cc3345c102 /src
parent9bb16705a5e6bf100797985cc596b9bcb9f0d6da (diff)
downloadirssi-57629dcadcfca4a0f62e921a76d922f2a4dae0f3.zip
Layout save support for immortality..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2423 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/windows-layout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c
index 56ebcb89..5d53f1ae 100644
--- a/src/fe-common/core/windows-layout.c
+++ b/src/fe-common/core/windows-layout.c
@@ -117,6 +117,7 @@ static void sig_layout_restore(void)
window_set_refnum(window, atoi(node->key));
window->sticky_refnum = config_node_get_bool(node, "sticky_refnum", FALSE);
+ window->immortal = config_node_get_bool(node, "immortal", FALSE);
window_set_name(window, config_node_get_str(node, "name", NULL));
window_set_history(window, config_node_get_str(node, "history_name", NULL));
window_set_level(window, level2bits(config_node_get_str(node, "level", "")));
@@ -171,6 +172,9 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node)
if (window->sticky_refnum)
iconfig_node_set_bool(node, "sticky_refnum", TRUE);
+ if (window->immortal)
+ iconfig_node_set_bool(node, "immortal", TRUE);
+
if (window->name != NULL)
iconfig_node_set_str(node, "name", window->name);