From 4c484d753682720b8152f44e1147fe2b48266812 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 17 Mar 2001 20:50:06 +0000 Subject: If the filter type is a "system-flag", use the optionlist type as type 2001-03-17 Jeffrey Stedfast * filter-element.c (filter_element_new_type_name): If the filter type is a "system-flag", use the optionlist type as type system-flag has been removed. This should allow backward compatability. svn path=/trunk/; revision=8785 --- filter/ChangeLog | 5 +++++ filter/filter-element.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'filter') diff --git a/filter/ChangeLog b/filter/ChangeLog index bef78356a1..af70a59ec7 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,5 +1,10 @@ 2001-03-17 Jeffrey Stedfast + * filter-element.c (filter_element_new_type_name): If the filter + type is a "system-flag", use the optionlist type as type + system-flag has been removed. This should allow backward + compatability. + * filter-editor.c (filter_editor_construct): Remove the menu that is in the glade file because we want to replace it with our menu, not append items to that menu. diff --git a/filter/filter-element.c b/filter/filter-element.c index 28841ab837..cbc2c009f9 100644 --- a/filter/filter-element.c +++ b/filter/filter-element.c @@ -257,7 +257,7 @@ filter_element_new_type_name (const char *type) return (FilterElement *)filter_code_new (); } else if (!strcmp (type, "colour")) { return (FilterElement *)filter_colour_new (); - } else if (!strcmp (type, "optionlist")) { + } else if (!strcmp (type, "optionlist") || !strcmp (type, "system-flag")) { return (FilterElement *)filter_option_new (); } else if (!strcmp (type, "datespec")) { return (FilterElement *)filter_datespec_new (); -- cgit