Changeset ba042db
- Timestamp:
- Sep 14, 2010, 4:56:13 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 10dd8e6
- Parents:
- 0743696
- git-author:
- David Benjamin <davidben@mit.edu> (09/14/10 16:50:36)
- git-committer:
- David Benjamin <davidben@mit.edu> (09/14/10 16:56:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rd40ad8b rba042db 148 148 { 149 149 owl_cmddict_setup(&(g->cmds)); 150 }151 152 /* If *pan does not exist, we create a new panel, otherwise we replace the153 window in *pan with win.154 155 libpanel PANEL objects cannot exist without owner a valid window. This156 maintains the invariant for _owl_global_setup_windows. */157 void _owl_panel_set_window(PANEL **pan, WINDOW *win)158 {159 WINDOW *oldwin;160 161 if (win == NULL) {162 owl_function_debugmsg("_owl_panel_set_window: passed NULL win (failed to allocate?)");163 endwin();164 exit(50);165 }166 167 if (*pan) {168 oldwin = panel_window(*pan);169 replace_panel(*pan, win);170 delwin(oldwin);171 } else {172 *pan = new_panel(win);173 }174 150 } 175 151
Note: See TracChangeset
for help on using the changeset viewer.