aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-11-28 06:23:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-11-28 06:23:33 +0800
commitdce674fa1a19593e8b9b3b2ddbe5524f9cc54714 (patch)
tree2452242615a527700c376f3b7bfc2c650b548710 /filter/filter-option.c
parent7a6e3e892c2dc5239c4921ad585ffd78895ae3b5 (diff)
downloadgsoc2013-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-option.c')
-rw-r--r--filter/filter-option.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c
index bdac9288d3..a6bcaad8c1 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -231,20 +231,6 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
return 0;
}
-static void
-option_activate (GtkMenuItem *item, FilterOption *fo)
-{
- FilterElement *fe = (FilterElement *) fo;
- gboolean is_regex;
-
- fo->current = gtk_object_get_data (GTK_OBJECT (item), "option");
- d(printf ("option changed to %s\n", fo->current->title));
-
- /* FIXME: there's probably a better way to do this */
- is_regex = !(!strstr (fo->current->title, "regex"));
- fe->data = GINT_TO_POINTER (is_regex);
-}
-
static GtkWidget *
get_widget (FilterElement *fe)
{
@@ -261,7 +247,6 @@ get_widget (FilterElement *fe)
op = l->data;
item = gtk_menu_item_new_with_label (_(op->title));
gtk_object_set_data (GTK_OBJECT (item), "option", op);
- gtk_signal_connect (GTK_OBJECT (item), "activate", option_activate, fo);
gtk_menu_append (GTK_MENU (menu), item);
gtk_widget_show (item);
if (op == fo->current) {