Changeset ecd5dc5 for global.c


Ignore:
Timestamp:
Apr 12, 2003, 4:54:57 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e9b1f60
Parents:
8262340
Message:
M-p is bound to 'view personal' by default
loadsubs and loadloginsubs only print messages if in interactive
  mode
added the 'alert_filter' variable, defaults to 'none'.
added the 'alert_action' variable, which is an owl command that
  will be executed when new messages arive that match the
  alert_filter
added the 'term' command which takes the 'raise' and 'deiconify'
  options.  It assumes xterm for now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r8262340 recd5dc5  
    9090
    9191void _owl_global_setup_windows(owl_global *g) {
    92   int lines, cols, typwin_lines;
    93 
    94   lines=g->lines;
     92  int cols, typwin_lines;
     93
    9594  cols=g->cols;
    96   typwin_lines = owl_global_get_typwin_lines(g);
     95  typwin_lines=owl_global_get_typwin_lines(g);
    9796
    9897  /* set the new window sizes */
    9998  g->recwinlines=g->lines-(typwin_lines+2);
     99  if (g->recwinlines<1) {
     100    /* this will screw things up.  I'm not sure what to do yet,
     101       but this is better than nothing */
     102    /* g->recwinlines=1; */
     103  }
    100104
    101105  /* create the new windows */
    102106  g->recwin=newwin(g->recwinlines, cols, 0, 0);
     107  if (g->recwin==NULL) {
     108    owl_function_debugmsg("\n\nI just received an error on creating a new receive window\n");
     109    owl_function_debugmsg("newwin was called with arguments (%i, %i, 0, 0) and returned NULL\n",
     110           g->recwinlines, cols);
     111    endwin();
     112
     113    exit(50);
     114  }
     115     
    103116  g->sepwin=newwin(1, cols, g->recwinlines, 0);
    104117  g->msgwin=newwin(1, cols, g->recwinlines+1, 0);
     
    375388  }
    376389
    377   /*
    378   char buff[1024];
    379   sprintf(buff, "New size is %i lines, %i cols.\n", size.ws_row, size.ws_col);
    380   owl_function_makemsg(buff);
    381   */
     390  owl_function_debugmsg("New size is %i lines, %i cols.", size.ws_row, size.ws_col);
    382391  owl_function_makemsg("");
    383 
    384392  g->resizepending=0;
    385393}
Note: See TracChangeset for help on using the changeset viewer.