diff options
-rw-r--r-- | filter/ChangeLog | 7 | ||||
-rw-r--r-- | filter/rule-context.c | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 31a18c3656..1efa3d9345 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,10 @@ +2007-06-04 Chenthill Palanisamy <pchenthill@novell.com> + + * rule-context.c: (new_element): Added a percentage + element. + + Committing on behalf of Keshav Upadhyaya <ukeshav@novell.com> + 2007-05-17 Gilles Dartiguelongue <dartigug@esiee.fr> ** Fixes bug #439118 diff --git a/filter/rule-context.c b/filter/rule-context.c index c08bcf1c5e..4e25eacb2b 100644 --- a/filter/rule-context.c +++ b/filter/rule-context.c @@ -924,6 +924,9 @@ new_element(RuleContext *rc, const char *type) return (FilterElement *) filter_input_new_type_name (type); } else if (!strcmp (type, "label")) { return (FilterElement *) filter_label_new (); + }else if (!strcmp(type, "completedpercent")) { + return (FilterElement *) filter_int_new_type("completedpercent", 0,100); + } else { g_warning("Unknown filter type '%s'", type); return NULL; |