From dce674fa1a19593e8b9b3b2ddbe5524f9cc54714 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 27 Nov 2000 22:23:33 +0000 Subject: Moved the regex filter rule around - we've changed the format a bit. 2000-11-27 Jeffrey Stedfast * 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 * filter-message-search.c (get_full_header): impl. (header_full_regex): use it. 2000-11-23 Michael Meeks * filter-message-search.c (header_full_regex): impl. svn path=/trunk/; revision=6685 --- filter/filter-option.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'filter/filter-option.c') 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) { -- cgit