[340] in BarnOwl Developers
[D-O-H] r485 - in trunk: . owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:05:05 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Tue, 26 Dec 2006 01:22:35 -0500 (EST)
Author: nelhage
Date: 2006-12-26 01:22:35 -0500 (Tue, 26 Dec 2006)
New Revision: 485
Modified:
trunk/
trunk/owl/filter.c
Log:
r15937@phanatique: nelhage | 2006-12-26 01:22:28 -0500
make owl_filter_print include the filter name and color, like the old one did
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:15935
+ bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:15937
Modified: trunk/owl/filter.c
===================================================================
--- trunk/owl/filter.c 2006-12-26 06:05:26 UTC (rev 484)
+++ trunk/owl/filter.c 2006-12-26 06:22:35 UTC (rev 485)
@@ -192,7 +192,14 @@
void owl_filter_print(owl_filter *f, char *out)
{
- strcpy(out, "");
+ strcpy(out, owl_filter_get_name(f));
+ strcat(out, ": ");
+
+ if (f->color!=OWL_COLOR_DEFAULT) {
+ strcat(out, "-c ");
+ strcat(out, owl_util_color_to_string(f->color));
+ strcat(out, " ");
+ }
if(!f->root) return;
owl_filterelement_print(f->root, out);
strcat(out, "\n");