1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Make /layout reset take effect immediately.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4765 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-14 12:39:35 +00:00 committed by exg
parent ca1bb6a8ed
commit aea2e737f9
2 changed files with 8 additions and 2 deletions

2
TODO
View File

@ -252,8 +252,6 @@
- Windows: - Windows:
- /WINDOW SIZE -sticky, so f.e. /WINDOW BALANCE wouldn't affect it. - /WINDOW SIZE -sticky, so f.e. /WINDOW BALANCE wouldn't affect it.
- /LAYOUT save|reset doesn't affect anything immediately, only after
restart
- Check that /LAYOUT SAVE works properly with all the different /SETs, - Check that /LAYOUT SAVE works properly with all the different /SETs,
like reuse_unsued_windows, windows_auto_renumber and autoclose_windows. like reuse_unsued_windows, windows_auto_renumber and autoclose_windows.
What should it do if some channel is /PARTed with autoclose_windows What should it do if some channel is /PARTed with autoclose_windows

View File

@ -240,6 +240,14 @@ void windows_layout_save(void)
void windows_layout_reset(void) void windows_layout_reset(void)
{ {
GSList *tmp;
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
WINDOW_REC *window = tmp->data;
while (window->bound_items != NULL)
window_bind_destroy(window, window->bound_items->data);
}
iconfig_set_str(NULL, "windows", NULL); iconfig_set_str(NULL, "windows", NULL);
signal_emit("layout reset", 0); signal_emit("layout reset", 0);