Changeset 176d3443


Ignore:
Timestamp:
Jan 30, 2005, 12:26:43 PM (16 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:
e74e573
Parents:
180cd15
Message:
Deal gracefully with being resized as small as 1x1 [BZ 3]
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r15b34fd r176d3443  
    2020          filter logging.  Now have more consistent interfaces to
    2121          creating messages etc.  Still needs more work though.
     22        Deal gracefully with being resized as small as 1x1 [BZ 3]
    2223
    23242.1.10
  • global.c

    r8232149 r176d3443  
    120120  /* set the new window sizes */
    121121  g->recwinlines=g->lines-(typwin_lines+2);
    122   if (g->recwinlines<1) {
    123     /* this will screw things up.  I'm not sure what to do yet,
    124        but this is better than nothing */
    125     /* g->recwinlines=1; */
    126   }
     122  if (g->recwinlines<0) {
     123    /* gotta deal with this */
     124    g->recwinlines=0;
     125  }
     126
     127  owl_function_debugmsg("_owl_global_setup_windows: about to call newwin(%i, %i, 0, 0)\n", g->recwinlines, cols);
    127128
    128129  /* create the new windows */
    129130  g->recwin=newwin(g->recwinlines, cols, 0, 0);
    130131  if (g->recwin==NULL) {
    131     owl_function_debugmsg("\n\nI just received an error on creating a new receive window\n");
    132     owl_function_debugmsg("newwin was called with arguments (%i, %i, 0, 0) and returned NULL\n",
    133            g->recwinlines, cols);
     132    owl_function_debugmsg("_owl_global_setup_windows: newwin returned NULL\n", g->recwinlines, cols);
    134133    endwin();
    135 
    136134    exit(50);
    137135  }
  • keybinding.c

    rcf83b7a r176d3443  
    1919  int    nktokens, i;
    2020 
    21   owl_function_debugmsg("creating binding for <%s> with desc: <%s>\n", keyseq, desc);
     21  owl_function_debugmsg("owl_keybinding_init: creating binding for <%s> with desc: <%s>", keyseq, desc);
    2222  if (command && !function_fn) {
    2323    kb->type = OWL_KEYBINDING_COMMAND;
  • owl.c

    r15b34fd r176d3443  
    138138  }
    139139
     140  owl_function_debugmsg("startup: Finished parsing arguments");
     141
    140142#ifdef HAVE_LIBZEPHYR
    141143  /* zephyr init */
     
    228230  owl_function_debugmsg("startup: creating built-in styles");
    229231  s=owl_malloc(sizeof(owl_style));
    230   owl_style_create_internal(s, "default", &owl_stylefunc_default,
    231                             "Default message formatting");
     232  owl_style_create_internal(s, "default", &owl_stylefunc_default, "Default message formatting");
    232233  owl_global_add_style(&g, s);
    233234
    234235  s=owl_malloc(sizeof(owl_style));
    235   owl_style_create_internal(s, "basic", &owl_stylefunc_basic,
    236                             "Basic message formatting.");
     236  owl_style_create_internal(s, "basic", &owl_stylefunc_basic, "Basic message formatting.");
    237237  owl_global_add_style(&g, s);
    238238#if 0
    239239  s=owl_malloc(sizeof(owl_style));
    240   owl_style_create_internal(s, "vt", &owl_stylefunc_vt,
    241                             "VT message formatting.");
     240  owl_style_create_internal(s, "vt", &owl_stylefunc_vt, "VT message formatting.");
    242241  owl_global_add_style(&g, s);
    243242#endif
    244243  s=owl_malloc(sizeof(owl_style));
    245   owl_style_create_internal(s, "oneline", &owl_stylefunc_oneline,
    246                             "Formats for one-line-per-message");
     244  owl_style_create_internal(s, "oneline", &owl_stylefunc_oneline, "Formats for one-line-per-message");
    247245  owl_global_add_style(&g, s);
    248246
Note: See TracChangeset for help on using the changeset viewer.