mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
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
This commit is contained in:
parent
58f52343fd
commit
45bb5c3cee
11 changed files with 415 additions and 366 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue