Changeset 2640b63


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
60c1386
Parents:
b8742ba
git-author:
David Benjamin <davidben@mit.edu> (08/01/10 15:34:41)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Rearrange some viewwin functions

The two constructor should be together. Otherwise, it's a bit hard to
read.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • viewwin.c

    rb8742ba r2640b63  
    3131}
    3232
    33 void owl_viewwin_append_text(owl_viewwin *v, const char *text) {
    34     owl_fmtext_append_normal(&(v->fmtext), text);
    35     v->textlines=owl_fmtext_num_lines(&(v->fmtext));
    36     owl_viewwin_dirty(v);
    37 }
    38 
    39 /* Schedule a redraw of 'v'. Exported for hooking into the search
    40    string; when we have some way of listening for changes, this can be
    41    removed. */
    42 void owl_viewwin_dirty(owl_viewwin *v)
    43 {
    44   if (v->window)
    45     owl_window_dirty(v->window);
    46 }
    47 
    4833/* Create a viewwin.  'win' is an already initialized owl_window that
    4934 * will be used by the viewwin
     
    124109  owl_fmtext_cleanup(&fm1);
    125110  owl_fmtext_cleanup(&fm2);
     111}
     112
     113void owl_viewwin_append_text(owl_viewwin *v, const char *text) {
     114    owl_fmtext_append_normal(&(v->fmtext), text);
     115    v->textlines=owl_fmtext_num_lines(&(v->fmtext));
     116    owl_viewwin_dirty(v);
     117}
     118
     119/* Schedule a redraw of 'v'. Exported for hooking into the search
     120   string; when we have some way of listening for changes, this can be
     121   removed. */
     122void owl_viewwin_dirty(owl_viewwin *v)
     123{
     124  if (v->window)
     125    owl_window_dirty(v->window);
    126126}
    127127
Note: See TracChangeset for help on using the changeset viewer.