Changeset ab88b05
- Timestamp:
- Jan 23, 2012, 5:27:42 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.9
- Children:
- 219f52c
- Parents:
- 8135737
- git-author:
- Jason Gross <jgross@mit.edu> (07/23/11 22:33:17)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/23/12 17:27:42)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r9078f69 rab88b05 109 109 110 110 /* Create the widgets */ 111 owl_mainwin_init(&(g->mw),g->mainpanel.recwin);111 g->mw = owl_mainwin_new(g->mainpanel.recwin); 112 112 owl_msgwin_init(&(g->msgwin), g->mainpanel.msgwin); 113 113 owl_sepbar_init(g->mainpanel.sepwin); … … 241 241 /* windows */ 242 242 243 owl_mainwin *owl_global_get_mainwin(owl_global *g) { 244 return(&(g->mw)); 243 owl_mainwin *owl_global_get_mainwin(owl_global *g) 244 { 245 return g->mw; 245 246 } 246 247 -
mainwin.c
r099597c rab88b05 4 4 static void owl_mainwin_resized(owl_window *w, void *user_data); 5 5 6 void owl_mainwin_init(owl_mainwin *mw,owl_window *window)6 CALLER_OWN owl_mainwin *owl_mainwin_new(owl_window *window) 7 7 { 8 owl_mainwin *mw = g_new(owl_mainwin, 1); 8 9 mw->curtruncated=0; 9 10 mw->lastdisplayed=-1; … … 16 17 /* For now, we do not bother with connecting up dependencies; that'll be a 17 18 * future refactor of the mainwin */ 19 20 return mw; 18 21 } 19 22 -
owl.h
rb9517cf rab88b05 533 533 534 534 typedef struct _owl_global { 535 owl_mainwin mw;535 owl_mainwin *mw; 536 536 owl_popwin *pw; 537 537 owl_msgwin msgwin;
Note: See TracChangeset
for help on using the changeset viewer.