aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 22:02:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:17 +0800
commit5146ff4c535f443fe25290eb96631e91ad44c8ef (patch)
treeb8cc31419c1f297092e13eedd9a5877f4c106eda /filter
parentea8a59a443f861af88ddb21d5dcbde1c95006203 (diff)
downloadgsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.gz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.bz2
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.lz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.xz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.zst
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'filter')
-rw-r--r--filter/e-filter-option.c11
-rw-r--r--filter/e-rule-context.c14
2 files changed, 20 insertions, 5 deletions
diff --git a/filter/e-filter-option.c b/filter/e-filter-option.c
index 25a979794b..0cea021666 100644
--- a/filter/e-filter-option.c
+++ b/filter/e-filter-option.c
@@ -206,13 +206,20 @@ filter_option_xml_create (EFilterElement *element,
option->dynamic_func = g_strdup ((const gchar *) fn);
- /* get options now, to have them available when reading saved rules */
+ /* Get options now, to have them
+ * available when reading saved
+ * rules. */
items = filter_option_get_dynamic_options (option);
for (i = items; i; i = i->next) {
op = i->data;
if (op) {
- e_filter_option_add (option, op->value, op->title, op->code, TRUE);
+ e_filter_option_add (
+ option,
+ op->value,
+ op->title,
+ op->code,
+ TRUE);
free_option (op);
}
}
diff --git a/filter/e-rule-context.c b/filter/e-rule-context.c
index 99378242ee..e03501ce62 100644
--- a/filter/e-rule-context.c
+++ b/filter/e-rule-context.c
@@ -365,7 +365,9 @@ rule_context_revert (ERuleContext *context,
/* clear out anythign we have? */
return 0;
- source_hash = g_hash_table_new ((GHashFunc) source_hashf, (GCompareFunc) source_eqf);
+ source_hash = g_hash_table_new (
+ (GHashFunc) source_hashf,
+ (GCompareFunc) source_eqf);
/* setup stuff we have now */
/* Note that we assume there is only 1 set of rules in a given rule context,
@@ -395,7 +397,9 @@ rule_context_revert (ERuleContext *context,
rule_map->type, NULL, NULL));
if (e_filter_rule_xml_decode (part, rule, context) == 0) {
- /* use the revert data to keep track of the right rank of this rule part */
+ /* Use the revert data to keep
+ * track of the right rank of
+ * this rule part. */
rest_data = g_hash_table_lookup (source_hash, part->source);
if (rest_data == NULL) {
rest_data = g_malloc0 (sizeof (*rest_data));
@@ -415,7 +419,11 @@ rule_context_revert (ERuleContext *context,
g_hash_table_remove (rest_data->rules, frule->name);
} else {
e_rule_context_add_rule (context, part);
- e_rule_context_rank_rule (context, part, part->source, rest_data->rank);
+ e_rule_context_rank_rule (
+ context,
+ part,
+ part->source,
+ rest_data->rank);
}
rest_data->rank++;
} else {