diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-06 04:47:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-06 04:47:24 +0800 |
commit | 96669b4af8ecc871dbfd405271293f29f38a05f3 (patch) | |
tree | bfe7084583e6d965a5ebd65c8199e24ad7ba1390 /filter/score-rule.h | |
parent | 12db8c46874e98b39ad026972527e422e4c228eb (diff) | |
download | gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar.gz gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar.bz2 gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar.lz gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar.xz gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.tar.zst gsoc2013-evolution-96669b4af8ecc871dbfd405271293f29f38a05f3.zip |
Ported.
2002-11-05 Jeffrey Stedfast <fejj@ximian.com>
* score-rule.c: Ported.
* score-editor.c: Ported. Again, thise code seems to be unused.
* score-context.c: Ported. Although it seems this code isn't
really used anywhere?
svn path=/trunk/; revision=18562
Diffstat (limited to 'filter/score-rule.h')
-rw-r--r-- | filter/score-rule.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/filter/score-rule.h b/filter/score-rule.h index bc7be4d043..fbd8f649de 100644 --- a/filter/score-rule.h +++ b/filter/score-rule.h @@ -1,7 +1,9 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * Copyright (C) 2000 Ximian Inc. + * Copyright (C) 2000-2002 Ximian Inc. * * Authors: Not Zed <notzed@lostzed.mmc.com.au> + * Jeffrey Stedfast <fejj@ximian.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -18,37 +20,41 @@ * Boston, MA 02111-1307, USA. */ + #ifndef _SCORE_RULE_H #define _SCORE_RULE_H #include "filter-rule.h" -#define SCORE_RULE(obj) GTK_CHECK_CAST (obj, score_rule_get_type (), ScoreRule) -#define SCORE_RULE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, score_rule_get_type (), ScoreRuleClass) -#define IS_SCORE_RULE(obj) GTK_CHECK_TYPE (obj, score_rule_get_type ()) +#define SCORE_TYPE_RULE (score_rule_get_type ()) +#define SCORE_RULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCORE_TYPE_RULE, ScoreRule)) +#define SCORE_RULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SCORE_TYPE_RULE, ScoreRuleClass)) +#define IS_SCORE_RULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCORE_TYPE_RULE)) +#define IS_SCORE_RULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SCORE_TYPE_RULE)) +#define SCORE_RULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SCORE_TYPE_RULE, ScoreRuleClass)) -typedef struct _ScoreRule ScoreRule; -typedef struct _ScoreRuleClass ScoreRuleClass; +typedef struct _ScoreRule ScoreRule; +typedef struct _ScoreRuleClass ScoreRuleClass; struct _ScoreRule { - FilterRule parent; - struct _ScoreRulePrivate *priv; - + FilterRule parent_object; + int score; }; struct _ScoreRuleClass { FilterRuleClass parent_class; - + /* virtual methods */ - + /* signals */ }; -guint score_rule_get_type (void); -ScoreRule *score_rule_new (void); + +GType score_rule_get_type (void); + +ScoreRule *score_rule_new (void); /* methods */ #endif /* ! _SCORE_RULE_H */ - |