diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-30 13:37:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-30 13:40:49 +0800 |
commit | cfb9c32b6657165e4d5e11aa7b47804f679a61f8 (patch) | |
tree | 1f9c8954df7a357b5dc20a13ac82bf31c1112083 /mail/em-search-context.h | |
parent | fefeb30f58447f2fa7bcbee16dbe68a9333ce89d (diff) | |
parent | 0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317 (diff) | |
download | gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar.gz gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar.bz2 gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar.lz gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar.xz gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.tar.zst gsoc2013-evolution-cfb9c32b6657165e4d5e11aa7b47804f679a61f8.zip |
Merge commit 'origin/kill-bonobo'
Diffstat (limited to 'mail/em-search-context.h')
-rw-r--r-- | mail/em-search-context.h | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/mail/em-search-context.h b/mail/em-search-context.h index 47dc6ea86a..d8b890270c 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 <filter/rule-context.h> -#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 */ |