Changeset ef56a67 for view.c


Ignore:
Timestamp:
Jun 22, 2003, 9:38:21 AM (17 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:
f1cbb7a
Parents:
3723f31
Message:
added the 'show view' command.
removed the style variable
 A style is now part of a view, the view command has been revamped
File:
1 edited

Legend:

Unmodified
Added
Removed
  • view.c

    rc3ab155 ref56a67  
    1313}
    1414
     15char *owl_view_get_name(owl_view *v)
     16{
     17  return(v->name);
     18}
    1519
    1620/* if the message matches the filter then add to view */
     
    5862{
    5963  v->style=s;
     64}
     65
     66owl_style *owl_view_get_style(owl_view *v)
     67{
     68  return(v->style);
    6069}
    6170
     
    113122}
    114123
     124/* fmtext should already be initialized */
     125void owl_view_to_fmtext(owl_view *v, owl_fmtext *fm)
     126{
     127  owl_fmtext_append_normal(fm, "Name: ");
     128  owl_fmtext_append_normal(fm, v->name);
     129  owl_fmtext_append_normal(fm, "\n");
     130
     131  owl_fmtext_append_normal(fm, "Filter: ");
     132  owl_fmtext_append_normal(fm, owl_filter_get_name(v->filter));
     133  owl_fmtext_append_normal(fm, "\n");
     134
     135  owl_fmtext_append_normal(fm, "Style: ");
     136  owl_fmtext_append_normal(fm, owl_style_get_name(v->style));
     137  owl_fmtext_append_normal(fm, "\n");
     138}
     139
    115140char *owl_view_get_filtname(owl_view *v)
    116141{
Note: See TracChangeset for help on using the changeset viewer.