Changeset 40d1eef for global.c


Ignore:
Timestamp:
Jun 2, 2010, 8:53:27 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, 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)
Message:
And a hacky port of the mainwin too

Some of the old relayout code should still be reorganized, but it's a
start.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r385fda9 r40d1eef  
    8282
    8383  owl_mainpanel_init(&(g->mainpanel));
    84   _owl_global_setup_windows(g);
    8584
    8685  /* Fill in some variables which don't have constant defaults */
     
    9594
    9695  owl_messagelist_create(&(g->msglist));
    97   owl_mainwin_init(&(g->mw));
     96  owl_mainwin_init(&(g->mw), g->mainpanel.recwin);
    9897  owl_popwin_init(&(g->pw));
    9998  owl_msgwin_init(&(g->msgwin), g->mainpanel.msgwin);
     
    159158    *pan = new_panel(win);
    160159  }
    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));
    173160}
    174161
     
    289276
    290277/* curses windows */
    291 
    292 WINDOW *owl_global_get_curs_recwin(const owl_global *g) {
    293   return panel_window(g->recpan);
    294 }
    295278
    296279owl_window *owl_global_get_curs_sepwin(const owl_global *g) {
     
    508491  owl_function_debugmsg("Relayouting...");
    509492
    510   /* re-initialize the windows */
    511   _owl_global_setup_windows(g);
    512 
    513493  /* in case any styles rely on the current width */
    514494  owl_messagelist_invalidate_formats(owl_global_get_msglist(g));
Note: See TracChangeset for help on using the changeset viewer.