aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-05 04:53:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-06-09 01:14:48 +0800
commitf014ab82c81078d60cb1df8c986305c2cc9948c2 (patch)
treec3bde4e5da923c9ee082fcb994b10c2ce2f61dc2 /filter
parent7428fc93d58921bab9968a999172b843af2a2244 (diff)
downloadgsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.gz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.zst
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'filter')
-rw-r--r--filter/e-filter-rule.c4
-rw-r--r--filter/e-rule-context.c19
2 files changed, 17 insertions, 6 deletions
diff --git a/filter/e-filter-rule.c b/filter/e-filter-rule.c
index 590ed597ee..1a7441face 100644
--- a/filter/e-filter-rule.c
+++ b/filter/e-filter-rule.c
@@ -116,7 +116,9 @@ part_combobox_changed (GtkComboBox *combobox,
data->part = newpart;
data->partwidget = e_filter_part_get_widget (newpart);
if (data->partwidget)
- gtk_box_pack_start (GTK_BOX (data->container), data->partwidget, TRUE, TRUE, 0);
+ gtk_box_pack_start (
+ GTK_BOX (data->container),
+ data->partwidget, TRUE, TRUE, 0);
}
static GtkWidget *
diff --git a/filter/e-rule-context.c b/filter/e-rule-context.c
index 804dc2ed65..712ecfa039 100644
--- a/filter/e-rule-context.c
+++ b/filter/e-rule-context.c
@@ -254,7 +254,8 @@ rule_context_load (ERuleContext *context,
}
rule = rule->next;
}
- } else if ((rule_map = g_hash_table_lookup (context->rule_set_map, set->name))) {
+ } else if ((rule_map = g_hash_table_lookup (
+ context->rule_set_map, set->name))) {
rule = set->children;
while (rule) {
if (!strcmp ((gchar *)rule->name, "rule")) {
@@ -404,12 +405,20 @@ rule_context_revert (ERuleContext *context,
rest_data = g_hash_table_lookup (source_hash, part->source);
if (rest_data == NULL) {
rest_data = g_malloc0 (sizeof (*rest_data));
- rest_data->rules = g_hash_table_new (g_str_hash, g_str_equal);
- g_hash_table_insert (source_hash, part->source, rest_data);
+ rest_data->rules = g_hash_table_new (
+ g_str_hash,
+ g_str_equal);
+ g_hash_table_insert (
+ source_hash,
+ part->source,
+ rest_data);
}
- frule = g_hash_table_lookup (rest_data->rules, part->name);
+ frule = g_hash_table_lookup (
+ rest_data->rules,
+ part->name);
if (frule) {
- if (context->priv->frozen == 0 && !e_filter_rule_eq (frule, part))
+ if (context->priv->frozen == 0 &&
+ !e_filter_rule_eq (frule, part))
e_filter_rule_copy (frule, part);
g_object_unref (part);