aboutsummaryrefslogtreecommitdiffstats
path: root/filter/e-rule-context.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 22:02:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-22 05:56:06 +0800
commitcb97c2dc8fd97b381af048f206333d5e557892ae (patch)
treec2901380e607a3b439abb1bed165344ba8f4fc83 /filter/e-rule-context.c
parent64fa8ad9c0851e2d5c1e90ac2e75af8d455d9fea (diff)
downloadgsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.gz
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.bz2
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.lz
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.xz
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.zst
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'filter/e-rule-context.c')
-rw-r--r--filter/e-rule-context.c14
1 files changed, 11 insertions, 3 deletions
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 {