diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-31 23:54:13 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:22 +0800 |
commit | 74b64d63f6389a734be990040270ceb1c1bea158 (patch) | |
tree | 19e804ca4ae58ed8df02e3c5c9014a0195acdae8 /mail/em-filter-source-element.h | |
parent | 80e3a3ad4b0ba1609b92f3c033cd9e967c8849bd (diff) | |
download | gsoc2013-evolution-74b64d63f6389a734be990040270ceb1c1bea158.tar.gz gsoc2013-evolution-74b64d63f6389a734be990040270ceb1c1bea158.tar.zst gsoc2013-evolution-74b64d63f6389a734be990040270ceb1c1bea158.zip |
EMFilterSourceElement cleanups.
Diffstat (limited to 'mail/em-filter-source-element.h')
-rw-r--r-- | mail/em-filter-source-element.h | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/mail/em-filter-source-element.h b/mail/em-filter-source-element.h index 5940a2200b..4d9518789e 100644 --- a/mail/em-filter-source-element.h +++ b/mail/em-filter-source-element.h @@ -21,32 +21,52 @@ * */ -#ifndef _EM_FILTER_SOURCE_ELEMENT_H -#define _EM_FILTER_SOURCE_ELEMENT_H +#ifndef EM_FILTER_SOURCE_ELEMENT_H +#define EM_FILTER_SOURCE_ELEMENT_H -#include "filter/e-filter-element.h" +#include <filter/e-filter-element.h> -#define EM_FILTER_SOURCE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), em_filter_source_element_get_type(), EMFilterSourceElement)) -#define EM_FILTER_SOURCE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), em_filter_source_element_get_type(), EMFilterSourceElementClass)) -#define EM_IS_FILTER_SOURCE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), em_filter_source_element_get_type())) -#define EM_IS_FILTER_SOURCE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), em_filter_source_element_get_type())) -#define EM_FILTER_SOURCE_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), em_filter_source_element_get_type(), EMFilterSourceElementClass)) +/* Standard GObject macros */ +#define EM_TYPE_FILTER_SOURCE_ELEMENT \ + (em_filter_source_element_get_type ()) +#define EM_FILTER_SOURCE_ELEMENT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_FILTER_SOURCE_ELEMENT, EMFilterSourceElement)) +#define EM_FILTER_SOURCE_ELEMENT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_FILTER_SOURCE_ELEMENT, EMFilterSourceElementClass)) +#define EM_IS_FILTER_SOURCE_ELEMENT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_FILTER_SOURCE_ELEMENT)) +#define EM_IS_FILTER_SOURCE_ELEMENT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_TYPE_FILTER_SOURCE_ELEMENT)) +#define EM_FILTER_SOURCE_ELEMENT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_FILTER_SOURCE_ELEMENT, EMFilterSourceElementClass)) + +G_BEGIN_DECLS typedef struct _EMFilterSourceElement EMFilterSourceElement; typedef struct _EMFilterSourceElementClass EMFilterSourceElementClass; +typedef struct _EMFilterSourceElementPrivate EMFilterSourceElementPrivate; struct _EMFilterSourceElement { - EFilterElement parent_object; - struct _EMFilterSourceElementPrivate *priv; + EFilterElement parent; + EMFilterSourceElementPrivate *priv; }; struct _EMFilterSourceElementClass { EFilterElementClass parent_class; }; -GType em_filter_source_element_get_type (void); -EFilterElement *em_filter_source_element_new (void); +GType em_filter_source_element_get_type + (void) G_GNUC_CONST; +EFilterElement *em_filter_source_element_new (void); +void em_filter_source_element_set_current + (EMFilterSourceElement *src, + const gchar *url); -void em_filter_source_element_set_current (EMFilterSourceElement *src, const gchar *url); +G_END_DECLS -#endif /* _EM_FILTER_SOURCE_ELEMENT_H */ +#endif /* EM_FILTER_SOURCE_ELEMENT_H */ |