aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-18 04:50:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-18 04:50:06 +0800
commit4c484d753682720b8152f44e1147fe2b48266812 (patch)
tree683e164c93612be5d4824e6261871e1093fa7837
parentb167baaa3d914d634d72864baab45d1a3184779c (diff)
downloadgsoc2013-evolution-4c484d753682720b8152f44e1147fe2b48266812.tar.gz
gsoc2013-evolution-4c484d753682720b8152f44e1147fe2b48266812.tar.zst
gsoc2013-evolution-4c484d753682720b8152f44e1147fe2b48266812.zip
If the filter type is a "system-flag", use the optionlist type as type
2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-element.c2
2 files changed, 6 insertions, 1 deletions
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 <fejj@ximian.com>
+ * 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 ();