aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-rule.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-02-26 10:27:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-02-26 10:27:22 +0800
commit1b00ce5ca9b8a7c3a0cf0d96579aa04aad5e0820 (patch)
tree774eb5e2210876050674433cdaa18aad875060d4 /filter/filter-rule.c
parent43a998d8cba35528f094d206b23084e114353e12 (diff)
downloadgsoc2013-evolution-1b00ce5ca9b8a7c3a0cf0d96579aa04aad5e0820.tar.gz
gsoc2013-evolution-1b00ce5ca9b8a7c3a0cf0d96579aa04aad5e0820.tar.zst
gsoc2013-evolution-1b00ce5ca9b8a7c3a0cf0d96579aa04aad5e0820.zip
Copy values across to new part.
2002-02-26 Not Zed <NotZed@Ximian.com> * filter-filter.c (option_activate): Copy values across to new part. * filter-rule.c (option_activate): copy values across to new part, if they are compatible. * filter-element.c (filter_element_copy_value): New function to copy values (where they can be) from one filter element to another. * filter-part.c (filter_part_copy_values): New function to copy values of a filter part. #1359. svn path=/trunk/; revision=15841
Diffstat (limited to 'filter/filter-rule.c')
-rw-r--r--filter/filter-rule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/filter-rule.c b/filter/filter-rule.c
index 2f8fd76047..89e0d76726 100644
--- a/filter/filter-rule.c
+++ b/filter/filter-rule.c
@@ -533,6 +533,7 @@ option_activate (GtkMenuItem *item, struct _part_data *data)
gtk_container_remove (GTK_CONTAINER (data->container), data->partwidget);
newpart = filter_part_clone (part);
+ filter_part_copy_values(newpart, data->part);
filter_rule_replace_part (data->fr, data->part, newpart);
gtk_object_unref (GTK_OBJECT (data->part));
data->part = newpart;