diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-11-28 06:23:33 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-11-28 06:23:33 +0800 |
commit | dce674fa1a19593e8b9b3b2ddbe5524f9cc54714 (patch) | |
tree | 2452242615a527700c376f3b7bfc2c650b548710 /filter/filter-element.c | |
parent | 7a6e3e892c2dc5239c4921ad585ffd78895ae3b5 (diff) | |
download | gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar.gz gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar.bz2 gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar.lz gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar.xz gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.tar.zst gsoc2013-evolution-dce674fa1a19593e8b9b3b2ddbe5524f9cc54714.zip |
Moved the regex filter rule around - we've changed the format a bit.
2000-11-27 Jeffrey Stedfast <fejj@helixcode.com>
* filtertypes.xml: Moved the regex filter rule around - we've
changed the format a bit.
* filter-option.c (option_activate): Removed.
(get_widget): Don't connect the activate signal.
* filter-folder.c (validate): Updated.
* filter-datespec.c (validate): Updated.
* filter-part.c (filter_part_validate): Updated.
* filter-input.c (validate): Check the filter-input type - if it's
of type "regex", then check for regex validity.
* filter-element.c (filter_element_validate): No longer takes a
gpointer argument.
(filter_element_new_type_name): Allow type "regex" and create a
new filter-input with type "regex".
2000-11-24 Michael Meeks <michael@helixcode.com>
* filter-message-search.c (get_full_header): impl.
(header_full_regex): use it.
2000-11-23 Michael Meeks <michael@helixcode.com>
* filter-message-search.c (header_full_regex): impl.
svn path=/trunk/; revision=6685
Diffstat (limited to 'filter/filter-element.c')
-rw-r--r-- | filter/filter-element.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/filter/filter-element.c b/filter/filter-element.c index 1084ca6ca0..5824eb09f9 100644 --- a/filter/filter-element.c +++ b/filter/filter-element.c @@ -31,7 +31,7 @@ #include "filter-folder.h" #include "filter-url.h" -static gboolean validate (FilterElement *fe, gpointer data); +static gboolean validate (FilterElement *fe); static void xml_create(FilterElement *fe, xmlNodePtr node); static FilterElement *clone(FilterElement *fe); @@ -124,9 +124,9 @@ filter_element_new (void) } gboolean -filter_element_validate (FilterElement *fe, gpointer data) +filter_element_validate (FilterElement *fe) { - return ((FilterElementClass *)((GtkObject *)fe)->klass)->validate (fe, data); + return ((FilterElementClass *)((GtkObject *)fe)->klass)->validate (fe); } /** @@ -262,6 +262,8 @@ filter_element_new_type_name (const char *type) return (FilterElement *)filter_score_new (); } else if (!strcmp (type, "url")) { return (FilterElement *)filter_url_new (); + } else if (!strcmp (type, "regex")) { + return (FilterElement *)filter_input_new_type_name (type); } else { g_warning("Unknown filter type '%s'", type); return 0; @@ -276,7 +278,7 @@ filter_element_set_data (FilterElement *fe, gpointer data) /* default implementations */ static gboolean -validate (FilterElement *fe, gpointer data) +validate (FilterElement *fe) { return TRUE; } |