diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 02:32:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 02:32:57 +0800 |
commit | 4279d2042844fddc4429b8690a550778740222e3 (patch) | |
tree | a035b753a0eab170f5354dcfdfea21f7b74fc2c2 /mail/em-format-quote.h | |
parent | 942cdf2df9091e347e09c25d62015e77775f38b6 (diff) | |
download | gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.tar.gz gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.tar.zst gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.zip |
Commit some code cleanups that I want to keep separate.
svn path=/branches/kill-bonobo/; revision=37522
Diffstat (limited to 'mail/em-format-quote.h')
-rw-r--r-- | mail/em-format-quote.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/mail/em-format-quote.h b/mail/em-format-quote.h index 6b48fb87b4..87f0151a50 100644 --- a/mail/em-format-quote.h +++ b/mail/em-format-quote.h @@ -20,24 +20,47 @@ * */ -#ifndef _EM_FORMAT_QUOTE_H -#define _EM_FORMAT_QUOTE_H +#ifndef EM_FORMAT_QUOTE_H +#define EM_FORMAT_QUOTE_H +#include <camel/camel-stream.h> #include "mail/em-format.h" -typedef struct _EMFormatQuote EMFormatQuote; -typedef struct _EMFormatQuoteClass EMFormatQuoteClass; +/* Standard GObject macros */ +#define EM_TYPE_FORMAT_QUOTE \ + (em_format_quote_get_type ()) +#define EM_FORMAT_QUOTE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_FORMAT_QUOTE, EMFormatQuote)) +#define EM_FORMAT_QUOTE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_FORMAT_QUOTE, EMFormatQuoteClass)) +#define EM_IS_FORMAT_QUOTE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_FORMAT_QUOTE)) +#define EM_IS_FORMAT_QUOTE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_TYPE_FORMAT_QUOTE)) +#define EM_FORMAT_QUOTE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_FORMAT_QUOTE, EMFormatQuoteClass)) #define EM_FORMAT_QUOTE_CITE (1<<0) #define EM_FORMAT_QUOTE_HEADERS (1<<1) +G_BEGIN_DECLS + +typedef struct _EMFormatQuote EMFormatQuote; +typedef struct _EMFormatQuoteClass EMFormatQuoteClass; +typedef struct _EMFormatQuotePrivate EMFormatQuotePrivate; + struct _EMFormatQuote { EMFormat format; - struct _EMFormatQuotePrivate *priv; + EMFormatQuotePrivate *priv; char *credits; - struct _CamelStream *stream; + CamelStream *stream; guint32 flags; guint32 text_html_flags; @@ -48,8 +71,11 @@ struct _EMFormatQuoteClass { EMFormatClass format_class; }; -GType em_format_quote_get_type (void); +GType em_format_quote_get_type (void); +EMFormatQuote * em_format_quote_new (const gchar *credits, + CamelStream *stream, + guint32 flags); -EMFormatQuote *em_format_quote_new (const char *credits, struct _CamelStream *stream, guint32 flags); +G_END_DECLS -#endif /* !_EM_FORMAT_QUOTE_H */ +#endif /* EM_FORMAT_QUOTE_H */ |