Changeset c2c5c77 for mainwin.c


Ignore:
Timestamp:
Mar 28, 2007, 10:54:33 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7f33c18
Parents:
af9b92e
Message:
Adding 256-color support. This requires a version of ncurses that
supports ABI-6. Colors beyond the first eight are refered to by
number.

Perl now has the number of colors exposed to it by way of
  BarnOwl::getnumcolors()
and also has a mechanism for undefining filters using
  BarnOwl::_remove_filter([filter-name])

You can't remove the 'all' filter or the current filter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mainwin.c

    r8fa9562 rc2c5c77  
    7979    for (p=0; p<q; p++) {
    8080      f=owl_list_get_element(filtlist, p);
    81       if (owl_filter_message_match(f, m)) {
    82         if (owl_filter_get_fgcolor(f)!=OWL_COLOR_DEFAULT) fgcolor=owl_filter_get_fgcolor(f);
    83         if (owl_filter_get_bgcolor(f)!=OWL_COLOR_DEFAULT) bgcolor=owl_filter_get_bgcolor(f);
     81      if ((owl_filter_get_fgcolor(f)!=OWL_COLOR_DEFAULT) ||
     82          (owl_filter_get_bgcolor(f)!=OWL_COLOR_DEFAULT)) {
     83        if (owl_filter_message_match(f, m)) {
     84          if (owl_filter_get_fgcolor(f)!=OWL_COLOR_DEFAULT) fgcolor=owl_filter_get_fgcolor(f);
     85          if (owl_filter_get_bgcolor(f)!=OWL_COLOR_DEFAULT) bgcolor=owl_filter_get_bgcolor(f);
     86        }
    8487      }
    8588    }
Note: See TracChangeset for help on using the changeset viewer.