diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-07-26 14:27:18 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-07-26 14:27:18 +0000 |
commit | 38234003909143a08d5b6cc56dab9bd47908d311 (patch) | |
tree | 7af2039b267088143a7744bbda32e772ae0718b6 /src/fe-common | |
parent | 022b6f183a710c61c08b92de2fb9991e65a66b35 (diff) | |
download | irssi-38234003909143a08d5b6cc56dab9bd47908d311.zip |
Sort the layout to save by refnum.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4586 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/windows-layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index 0a5bb50a..d17d651e 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -219,11 +219,14 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node) void windows_layout_save(void) { CONFIG_NODE *node; + GSList *sorted; iconfig_set_str(NULL, "windows", NULL); node = iconfig_node_traverse("windows", TRUE); - g_slist_foreach(windows, (GFunc) window_save, node); + sorted = windows_get_sorted(); + g_slist_foreach(sorted, (GFunc) window_save, node); + g_slist_free(sorted); signal_emit("layout save", 0); printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, |