diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-14 01:14:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-14 01:14:26 +0000 |
commit | 285b33e99244bb3c7a5c5b63bf0d0650299b728c (patch) | |
tree | 8f748a3396bf176b16795f9d3027a0a8bb5d64b1 /src/fe-text/gui-windows.c | |
parent | 51b1d80fbe1853f64f530b4d58c77b516979ad90 (diff) | |
download | irssi-285b33e99244bb3c7a5c5b63bf0d0650299b728c.zip |
/SET scroll ON - should the windows be scrolled by default when you're at
bottom. /WINDOW SCROLL ON|OFF|DEFAULT - Window specific scrolling behaviour,
also saved in windows layout.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1751 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r-- | src/fe-text/gui-windows.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index e8f5dae3..48c1feb7 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -46,7 +46,8 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, gui->view = textbuffer_view_create(textbuffer_create(), window->width, window->height, settings_get_int("indent"), - settings_get_bool("indent_always")); + settings_get_bool("indent_always"), + settings_get_bool("scroll")); return gui; } @@ -313,10 +314,15 @@ static void read_settings(void) for (tmp = windows; tmp != NULL; tmp = tmp->next) { WINDOW_REC *rec = tmp->data; + GUI_WINDOW_REC *gui = WINDOW_GUI(rec); - textbuffer_view_set_default_indent(WINDOW_GUI(rec)->view, + textbuffer_view_set_default_indent(gui->view, settings_get_int("indent"), settings_get_bool("indent_always")); + + textbuffer_view_set_scroll(gui->view, + gui->use_scroll ? gui->scroll : + settings_get_bool("scroll")); } special_vars_add_signals(prompt, 4, funcs); @@ -332,6 +338,7 @@ void gui_windows_init(void) settings_add_bool("lookandfeel", "indent_always", FALSE); settings_add_str("lookandfeel", "prompt", "[$[.15]T] "); settings_add_str("lookandfeel", "prompt_window", "[$winname] "); + settings_add_bool("lookandfeel", "scroll", TRUE); prompt = NULL; prompt_window = NULL; window_create_override = -1; |