Changeset 1490327


Ignore:
Timestamp:
Feb 11, 2009, 12:20:21 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
28fa23c
Parents:
2101a50
git-author:
Geoffrey Thomas <geofft@mit.edu> (02/07/09 19:43:22)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:21)
Message:
fmtext.c: Add owl_fmtext_appendf_normal.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    rdb1af5fa r1490327  
    8888{
    8989  owl_fmtext_append_attr(f, text, OWL_FMTEXT_ATTR_NONE, OWL_COLOR_DEFAULT, OWL_COLOR_DEFAULT);
     90}
     91
     92/* Append normal, uncolored text specified by format string to 'f' */
     93void owl_fmtext_appendf_normal(owl_fmtext *f, char *fmt, ...)
     94{
     95  va_list ap;
     96  char *buff;
     97
     98  va_start(ap, fmt);
     99  buff = g_strdup_vprintf(fmt, ap);
     100  va_end(ap);
     101  if (!buff)
     102    return;
     103  owl_fmtext_append_attr(f, buff, OWL_FMTEXT_ATTR_NONE, OWL_COLOR_DEFAULT, OWL_COLOR_DEFAULT);
    90104}
    91105
Note: See TracChangeset for help on using the changeset viewer.