- Timestamp:
- Jun 1, 2010, 12:14:11 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- e294783
- Parents:
- 84a4aca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rd2a4534 rf6fae8d 158 158 159 159 void _owl_global_setup_windows(owl_global *g) { 160 int cols, typwin_lines,recwinlines;160 int cols, recwinlines; 161 161 162 162 cols=g->cols; 163 typwin_lines=owl_global_get_typwin_lines(g);164 163 165 164 recwinlines = owl_global_get_recwin_lines(g); … … 169 168 _owl_panel_set_window(&g->seppan, newwin(1, cols, recwinlines, 0)); 170 169 _owl_panel_set_window(&g->msgpan, newwin(1, cols, recwinlines+1, 0)); 171 _owl_panel_set_window(&g->typpan, newwin(typwin_lines, cols, recwinlines+2, 0));172 173 if (g->tw)174 owl_editwin_set_curswin(g->tw, owl_global_get_curs_typwin(g), typwin_lines, g->cols);175 176 wmove(owl_global_get_curs_typwin(g), 0, 0);177 170 } 178 171 … … 306 299 } 307 300 308 WINDOW*owl_global_get_curs_typwin(const owl_global *g) {309 return panel_window(g->typpan);301 owl_window *owl_global_get_curs_typwin(const owl_global *g) { 302 return g->mainpanel.typwin; 310 303 } 311 304 … … 361 354 owl_function_resize_typwin(owl_global_get_typwin_lines(g) + d); 362 355 356 if (g->typwin_erase_id) { 357 g_signal_handler_disconnect(owl_global_get_curs_typwin(g), g->typwin_erase_id); 358 g->typwin_erase_id = 0; 359 } 360 363 361 g->tw = owl_editwin_new(owl_global_get_curs_typwin(g), 364 362 owl_global_get_typwin_lines(g), … … 366 364 style, 367 365 hist); 366 owl_window_set_cursor(owl_global_get_curs_typwin(g)); 368 367 return g->tw; 369 368 } … … 374 373 owl_function_resize_typwin(owl_global_get_typwin_lines(g) - d); 375 374 376 werase(owl_global_get_curs_typwin(g)); 375 if (!g->typwin_erase_id) { 376 g->typwin_erase_id = 377 g_signal_connect(owl_global_get_curs_typwin(g), "redraw", G_CALLBACK(owl_window_erase_cb), NULL); 378 } 379 owl_window_dirty(owl_global_get_curs_typwin(g)); 380 /* owl_window_set_cursor(owl_global_get_curs_sepwin(g)); */ 381 377 382 g->tw = NULL; 378 owl_global_set_needrefresh(g);379 383 } 380 384 … … 494 498 495 499 owl_function_debugmsg("New size is %i lines, %i cols.", g->lines, g->cols); 496 owl_global_set_relayout_pending(g);497 500 } 498 501 … … 517 520 owl_mainwin_redisplay(&(g->mw)); 518 521 sepbar(NULL); 519 if (g->tw)520 owl_editwin_redisplay(g->tw);521 else522 werase(owl_global_get_curs_typwin(g));523 522 524 523 owl_function_full_redisplay();
Note: See TracChangeset
for help on using the changeset viewer.