diff options
Diffstat (limited to 'filter/score-context.h')
-rw-r--r-- | filter/score-context.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/filter/score-context.h b/filter/score-context.h index 3d636797f3..7a76ac8d32 100644 --- a/filter/score-context.h +++ b/filter/score-context.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 @@ -23,29 +25,34 @@ #include "rule-context.h" -#define SCORE_CONTEXT(obj) GTK_CHECK_CAST (obj, score_context_get_type (), ScoreContext) -#define SCORE_CONTEXT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, score_context_get_type (), ScoreContextClass) -#define IS_SCORE_CONTEXT(obj) GTK_CHECK_TYPE (obj, score_context_get_type ()) +#define SCORE_TYPE_CONTEXT (score_context_get_type ()) +#define SCORE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCORE_TYPE_CONTEXT, ScoreContext)) +#define SCORE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SCORE_TYPE_CONTEXT, ScoreContextClass)) +#define IS_SCORE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCORE_TYPE_CONTEXT)) +#define IS_SCORE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SCORE_TYPE_CONTEXT)) +#define SCORE_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SCORE_TYPE_CONTEXT, ScoreContextClass)) -typedef struct _ScoreContext ScoreContext; -typedef struct _ScoreContextClass ScoreContextClass; +typedef struct _ScoreContext ScoreContext; +typedef struct _ScoreContextClass ScoreContextClass; struct _ScoreContext { - RuleContext parent; + RuleContext parent_object; + }; struct _ScoreContextClass { RuleContextClass parent_class; - + /* virtual methods */ - + /* signals */ }; -guint score_context_get_type (void); -ScoreContext *score_context_new (void); + +GType score_context_get_type (void); + +ScoreContext *score_context_new (void); /* methods */ #endif /* ! _SCORE_CONTEXT_H */ - |