- Timestamp:
- Jun 2, 2010, 8:53:27 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- fa65671
- Parents:
- a5a9572
- git-author:
- David Benjamin <davidben@mit.edu> (06/02/10 20:41:52)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/02/10 20:53:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r385fda9 r40d1eef 82 82 83 83 owl_mainpanel_init(&(g->mainpanel)); 84 _owl_global_setup_windows(g);85 84 86 85 /* Fill in some variables which don't have constant defaults */ … … 95 94 96 95 owl_messagelist_create(&(g->msglist)); 97 owl_mainwin_init(&(g->mw) );96 owl_mainwin_init(&(g->mw), g->mainpanel.recwin); 98 97 owl_popwin_init(&(g->pw)); 99 98 owl_msgwin_init(&(g->msgwin), g->mainpanel.msgwin); … … 159 158 *pan = new_panel(win); 160 159 } 161 }162 163 void _owl_global_setup_windows(owl_global *g) {164 int cols, recwinlines;165 166 cols=g->cols;167 168 recwinlines = owl_global_get_recwin_lines(g);169 170 /* create the new windows */171 _owl_panel_set_window(&g->recpan, newwin(recwinlines, cols, 0, 0));172 _owl_panel_set_window(&g->seppan, newwin(1, cols, recwinlines, 0));173 160 } 174 161 … … 289 276 290 277 /* curses windows */ 291 292 WINDOW *owl_global_get_curs_recwin(const owl_global *g) {293 return panel_window(g->recpan);294 }295 278 296 279 owl_window *owl_global_get_curs_sepwin(const owl_global *g) { … … 508 491 owl_function_debugmsg("Relayouting..."); 509 492 510 /* re-initialize the windows */511 _owl_global_setup_windows(g);512 513 493 /* in case any styles rely on the current width */ 514 494 owl_messagelist_invalidate_formats(owl_global_get_msglist(g));
Note: See TracChangeset
for help on using the changeset viewer.