diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-07 12:41:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-07 12:41:10 +0000 |
commit | 45bb5c3ceed83ef937a373413ac7921b6b050682 (patch) | |
tree | 9d45cf174d1cb47ca88db1ed5c73d9b973e3a052 /src/fe-text/gui-windows.h | |
parent | 58f52343fdda263e54afeafea6aaf11945b5deca (diff) | |
download | irssi-45bb5c3ceed83ef937a373413ac7921b6b050682.zip |
Restoring layout for split windows works betters now. Some sticky window
changes/fixes. Renamed /WINDOW MOVE LEFT|RIGHT -> PREV|NEXT, added commands
/WINDOW MOVE UP|DOWN|LEFT|RIGHT. The new LEFT|RIGHT now moves the window
only inside split windows. mainwindows-save.c -> mainwindows-layout.c
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1710 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.h')
-rw-r--r-- | src/fe-text/gui-windows.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-text/gui-windows.h b/src/fe-text/gui-windows.h index fb94b46f..4b9792ce 100644 --- a/src/fe-text/gui-windows.h +++ b/src/fe-text/gui-windows.h @@ -5,6 +5,7 @@ #include "textbuffer-view.h" #define WINDOW_GUI(a) ((GUI_WINDOW_REC *) ((a)->gui_data)) +#define WINDOW_MAIN(a) (WINDOW_GUI(a)->parent) #define is_window_visible(win) \ (WINDOW_GUI(win)->parent->active == (win)) @@ -13,6 +14,7 @@ typedef struct { MAIN_WINDOW_REC *parent; TEXT_BUFFER_VIEW_REC *view; + unsigned int sticky:1; unsigned int use_insert_after:1; LINE_REC *insert_after; } GUI_WINDOW_REC; @@ -31,6 +33,9 @@ void gui_window_reparent(WINDOW_REC *window, MAIN_WINDOW_REC *parent); void gui_window_scroll(WINDOW_REC *window, int lines); void gui_window_scroll_line(WINDOW_REC *window, LINE_REC *line); +void gui_window_set_sticky(WINDOW_REC *window); +void gui_window_set_unsticky(WINDOW_REC *window); + void window_update_prompt(void); #endif |