From 07a40707a39c663f06893a5cba36d49ed63ba5b6 Mon Sep 17 00:00:00 2001 From: 3 Date: Sat, 15 Sep 2001 08:13:19 +0000 Subject: Emit changed events. 2001-09-13 * filter-filter.c (filter_filter_add_action): (filter_filter_remove_action): (filter_filter_replace_action): Emit changed events. * filter-rule.c (filter_rule_xml_decode): Emiot a rule changed event. (filter_rule_copy): Emit a changed event. (filter_rule_replace_part): " (filter_rule_add_part): " (filter_rule_remove_part): " (filter_rule_xml_decode): Freeze around decoding, so we only emit changed when done. (filter_rule_emit_changed): New function to emit changed events if not frozen. 2001-09-13 * rule-context.c (rule_context_class_init): Added a 'rule_added' and 'rule_removed' signal. (rule_context_load): Set a (private) frozen flag while we're loading. (rule_context_add_rule): Emit a rule_added signal if we're not frozen. (rule_context_remove_rule): Emit a rule_removed signal if we're not frozen. svn path=/trunk/; revision=12855 --- filter/filter-rule.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filter/filter-rule.h') diff --git a/filter/filter-rule.h b/filter/filter-rule.h index 41a10ca326..37704214a9 100644 --- a/filter/filter-rule.h +++ b/filter/filter-rule.h @@ -71,6 +71,7 @@ struct _FilterRuleClass { GtkWidget *(*get_widget)(FilterRule *fr, struct _RuleContext *f); /* signals */ + void (*changed)(FilterRule *fr); }; guint filter_rule_get_type (void); @@ -100,9 +101,12 @@ void filter_rule_build_code (FilterRule *fr, GString *out); void filter_rule_build_action(FilterRule *fr, GString *out); */ +void filter_rule_emit_changed (FilterRule *fr); + /* static functions */ FilterRule *filter_rule_next_list (GList *l, FilterRule *last, const char *source); FilterRule *filter_rule_find_list (GList *l, const char *name, const char *source); + #endif /* ! _FILTER_RULE_H */ -- cgit