aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-07-16 10:36:20 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-07-16 10:36:20 +0800
commit09a5b6b00a5ace026bf019e3a6eba905e4312d2d (patch)
tree00317b856d9a7c9ff60b7518c0b16f2593b36cb7 /filter/filter-option.h
parenta86cb9d3a9e97b432cb89b3c2cc8c3408d99de6c (diff)
downloadgsoc2013-evolution-09a5b6b00a5ace026bf019e3a6eba905e4312d2d.tar.gz
gsoc2013-evolution-09a5b6b00a5ace026bf019e3a6eba905e4312d2d.tar.zst
gsoc2013-evolution-09a5b6b00a5ace026bf019e3a6eba905e4312d2d.zip
cvs remove.
2002-07-15 Not Zed <NotZed@Ximian.com> * filter-score.[ch]: cvs remove. * filter-element.c: Remove reference to filter-score.h * vfoldertypes.xml: Fix label vfolder rule as below, also add score and size rules from filtertypes.xml. * filtertypes.xml (score): Use (cast-int (user-tag "score")) to get the value directly, rather than (get-score). (label): Use (user-tag "label") to get the value directly, rather than (get-label). The label is now a string too. * filter-label.c (filter_label_get_type): Make filter-label inherit from filter-option. Which makes more sense doesn't it ... surely. (validate): Removed, optionlists are self-validating. (xml_create): Initialise the list of options from our configuration database. If it isn't working, ignore it and set it up anyway. (filter_label_init): Override the xml type. (filter_label_count): (filter_label_label): (filter_label_index): Some helper functions for external interfaces. All of the mail config/etc should use this. * filter-option.c (free_option): (xml_create): (clone): Made the "value" type in glib memory rather than xml memory space. (filter_option_add): Utility function to add a new option to the list. (clone): Use above function to simplify code. (xml_create): Same here. (xml_encode): Allow subclasses to override the type. svn path=/trunk/; revision=17472
Diffstat (limited to 'filter/filter-option.h')
-rw-r--r--filter/filter-option.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/filter-option.h b/filter/filter-option.h
index 4b33a18697..a296c75602 100644
--- a/filter/filter-option.h
+++ b/filter/filter-option.h
@@ -40,6 +40,8 @@ struct _FilterOption {
FilterElement parent;
struct _FilterOptionPrivate *priv;
+ const char *type; /* static memory, type name written to xml */
+
GList *options;
struct _filter_option *current;
};
@@ -57,6 +59,7 @@ FilterOption *filter_option_new (void);
/* methods */
void filter_option_set_current(FilterOption *option, const char *name);
+void filter_option_add(FilterOption *fo, const char *name, const char *title, const char *code);
#endif /* ! _FILTER_OPTION_H */