Changeset d3814ff
- Timestamp:
- May 29, 2010, 1:14:57 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- c447d9c
- Parents:
- 1383b58
- git-author:
- David Benjamin <davidben@mit.edu> (05/27/10 12:02:11)
- git-committer:
- David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r68f63a2 rd3814ff 412 412 owl_window *border; 413 413 owl_window *content; 414 int lines;415 int cols;416 414 int active; 417 415 } owl_popwin; -
popwin.c
r1383b58 rd3814ff 4 4 { 5 5 pw->active=0; 6 pw->lines=0;7 pw->cols=0;8 6 return(0); 9 7 } … … 47 45 void owl_popwin_resize_content(owl_window *w, void *user_data) 48 46 { 47 int lines, cols; 49 48 owl_popwin *pw = user_data; 50 owl_window_get_position(w, & pw->lines, &pw->cols, 0, 0);51 owl_window_set_position(pw->content, pw->lines-2, pw->cols-2, 1, 1);49 owl_window_get_position(w, &lines, &cols, 0, 0); 50 owl_window_set_position(pw->content, lines-2, cols-2, 1, 1); 52 51 } 53 52 … … 90 89 return pw->content; 91 90 } 92 93 int owl_popwin_get_lines(const owl_popwin *pw)94 {95 return(pw->lines-2);96 }97 98 int owl_popwin_get_cols(const owl_popwin *pw)99 {100 return(pw->cols-2);101 }
Note: See TracChangeset
for help on using the changeset viewer.