multigrid: rename event to win_pos, make grid first

This commit is contained in:
Björn Linse
2018-11-11 10:33:02 +01:00
parent f6f8f0ee76
commit db14d78e4f
3 changed files with 12 additions and 10 deletions

View File

@@ -84,10 +84,10 @@ void grid_scroll(Integer grid, Integer top, Integer bot,
void grid_destroy(Integer grid)
FUNC_API_SINCE(5) FUNC_API_REMOTE_ONLY;
void win_position(Integer win, Integer grid, Integer startrow,
Integer startcol, Integer width, Integer height)
void win_pos(Integer grid, Integer win, Integer startrow,
Integer startcol, Integer width, Integer height)
FUNC_API_SINCE(5) FUNC_API_REMOTE_ONLY;
void win_hide(Integer win, Integer grid)
void win_hide(Integer grid)
FUNC_API_SINCE(5) FUNC_API_REMOTE_ONLY;
void win_scroll_over_start(void)
FUNC_API_SINCE(5) FUNC_API_REMOTE_ONLY;

View File

@@ -6100,10 +6100,10 @@ void win_ui_flush(void)
FOR_ALL_TAB_WINDOWS(tp, wp) {
if (wp->w_pos_changed && wp->w_grid.ScreenLines != NULL) {
if (tp == curtab) {
ui_call_win_position(wp->handle, wp->w_grid.handle, wp->w_winrow,
wp->w_wincol, wp->w_width, wp->w_height);
ui_call_win_pos(wp->w_grid.handle, wp->handle, wp->w_winrow,
wp->w_wincol, wp->w_width, wp->w_height);
} else {
ui_call_win_hide(wp->handle, wp->w_grid.handle);
ui_call_win_hide(wp->w_grid.handle);
}
wp->w_pos_changed = false;
}