aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-int.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-07-15 09:46:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-07-15 09:46:17 +0800
commit68ec840bca073bc8e8ea2f58ad36078df9c619c1 (patch)
tree64083ad8df8983d37c2658c51e1c961e4671f160 /filter/filter-int.h
parente785008af08bdc913ce2711dcd7998efb51f694b (diff)
downloadgsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar.gz
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar.bz2
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar.lz
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar.xz
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.tar.zst
gsoc2013-evolution-68ec840bca073bc8e8ea2f58ad36078df9c619c1.zip
** fixes for #10781
2002-07-10 Not Zed <NotZed@Ximian.com> ** fixes for #10781 * filter-int.c (xml_encode): (xml_decode): Handle encoding/decoding with a type name, in a manner compatible with the score/label elemtns. (filter_int_new_type): New constructor to create a generic 'int' type. * filter-score.c: Removed. Now relies on using a filter-int with appropriate settings. * filter-label.[ch]: Now inherits from filter-int. * rule-context.c (rule_context_revert): New method to revert a filter context back to a user-file's definition. (revert): implementation. * filter-rule.h: Added new virtual method _eq and wrapper, and fixed all subclasses to implement it. * filter-element.h: Added new virtual method _eq and wrapper. Fixed all subclasses to implement it. svn path=/trunk/; revision=17448
Diffstat (limited to 'filter/filter-int.h')
-rw-r--r--filter/filter-int.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/filter/filter-int.h b/filter/filter-int.h
index 7a451f29ff..4ed508cd36 100644
--- a/filter/filter-int.h
+++ b/filter/filter-int.h
@@ -37,8 +37,11 @@ typedef struct _FilterIntClass FilterIntClass;
struct _FilterInt {
FilterElement parent;
struct _FilterIntPrivate *priv;
-
- gint32 val;
+
+ char *type;
+ int val;
+ int min;
+ int max;
};
struct _FilterIntClass {
@@ -51,6 +54,8 @@ struct _FilterIntClass {
guint filter_int_get_type (void);
FilterInt *filter_int_new (void);
+FilterInt *filter_int_new_type(const char *type, int min, int max);
+void filter_int_set_value(FilterInt *fi, int val);
/* methods */