Changeset c2c5c77 for perlglue.xs


Ignore:
Timestamp:
Mar 28, 2007, 10:54:33 PM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, 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
  • perlglue.xs

    r3066d23 rc2c5c77  
    296296                owl_global_add_style(&g, s);
    297297        }
     298
     299int
     300getnumcolors()
     301        CODE:
     302                RETVAL = owl_function_get_color_count();
     303        OUTPUT:
     304                RETVAL
     305
     306void
     307_remove_filter(filterName)
     308        char *filterName
     309        CODE:
     310        {
     311                /* Don't delete the current view, or the 'all' filter */
     312                if (strcmp(filterName, owl_view_get_filtname(owl_global_get_current_view(&g)))
     313                    && strcmp(filterName, "all")) {
     314                        owl_global_remove_filter(&g,filterName);
     315                }
     316        }
Note: See TracChangeset for help on using the changeset viewer.