diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 22:02:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-22 05:56:06 +0800 |
commit | cb97c2dc8fd97b381af048f206333d5e557892ae (patch) | |
tree | c2901380e607a3b439abb1bed165344ba8f4fc83 /filter | |
parent | 64fa8ad9c0851e2d5c1e90ac2e75af8d455d9fea (diff) | |
download | gsoc2013-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')
-rw-r--r-- | filter/e-filter-option.c | 11 | ||||
-rw-r--r-- | filter/e-rule-context.c | 14 |
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 { |