From 54b80a7271e8ce1b2f3ccc68bb553940a24b80e2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 17 Oct 2008 03:48:03 +0000 Subject: Get the mail folder tree compiling, though I'm not yet sure why it's not showing anything. Probably something stupid. Also enabled the composer. svn path=/branches/kill-bonobo/; revision=36623 --- mail/em-search-context.h | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) (limited to 'mail/em-search-context.h') diff --git a/mail/em-search-context.h b/mail/em-search-context.h index 3df5c1d577..ad18570901 100644 --- a/mail/em-search-context.h +++ b/mail/em-search-context.h @@ -22,31 +22,46 @@ * */ -#ifndef _EM_SEARCH_CONTEXT_H -#define _EM_SEARCH_CONTEXT_H +#ifndef EM_SEARCH_CONTEXT_H +#define EM_SEARCH_CONTEXT_H -#include "filter/rule-context.h" +#include -#define EM_SEARCH_TYPE_CONTEXT (em_search_context_get_type ()) -#define EM_SEARCH_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_SEARCH_TYPE_CONTEXT, EMSearchContext)) -#define EM_SEARCH_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EM_SEARCH_TYPE_CONTEXT, EMSearchContextClass)) -#define IS_EM_SEARCH_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EM_SEARCH_TYPE_CONTEXT)) -#define IS_EM_SEARCH_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EM_SEARCH_TYPE_CONTEXT)) -#define EM_SEARCH_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EM_SEARCH_TYPE_CONTEXT, EMSearchContextClass)) +/* Standard GObject macros */ +#define EM_SEARCH_TYPE_CONTEXT \ + (em_search_context_get_type ()) +#define EM_SEARCH_CONTEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_SEARCH_TYPE_CONTEXT, EMSearchContext)) +#define EM_SEARCH_CONTEXT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_SEARCH_TYPE_CONTEXT, EMSearchContextClass)) +#define EM_IS_SEARCH_CONTEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_SEARCH_TYPE_CONTEXT)) +#define EM_IS_SEARCH_CONTEXT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_SEARCH_TYPE_CONTEXT)) +#define EM_SEARCH_CONTEXT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_SEARCH_TYPE_CONTEXT, EMSearchContextClass)) + +G_BEGIN_DECLS typedef struct _EMSearchContext EMSearchContext; typedef struct _EMSearchContextClass EMSearchContextClass; struct _EMSearchContext { - RuleContext parent_object; + RuleContext parent; }; struct _EMSearchContextClass { RuleContextClass parent_class; }; -GType em_search_context_get_type (void); +GType em_search_context_get_type (void); +RuleContext * em_search_context_new (void); -EMSearchContext *em_search_context_new (void); +G_END_DECLS -#endif /* ! _EM_SEARCH_CONTEXT_H */ +#endif /* EM_SEARCH_CONTEXT_H */ -- cgit v1.2.3