aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/rule-context.c')
-rw-r--r--filter/rule-context.c3
1 files changed, 3 insertions, 0 deletions
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;