mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Sort the layout to save by refnum.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4586 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
022b6f183a
commit
3823400390
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user