From 4279d2042844fddc4429b8690a550778740222e3 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 14 Apr 2009 18:32:57 +0000 Subject: Commit some code cleanups that I want to keep separate. svn path=/branches/kill-bonobo/; revision=37522 --- mail/em-format-html-print.h | 44 +++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) (limited to 'mail/em-format-html-print.h') diff --git a/mail/em-format-html-print.h b/mail/em-format-html-print.h index e308b065fa..ef25b63033 100644 --- a/mail/em-format-html-print.h +++ b/mail/em-format-html-print.h @@ -16,13 +16,32 @@ * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) */ -#ifndef _EM_FORMAT_HTML_PRINT_H -#define _EM_FORMAT_HTML_PRINT_H + +#ifndef EM_FORMAT_HTML_PRINT_H +#define EM_FORMAT_HTML_PRINT_H #include "mail/em-format-html.h" +/* Standard GObject macros */ #define EM_TYPE_FORMAT_HTML_PRINT \ (em_format_html_print_get_type ()) +#define EM_FORMAT_HTML_PRINT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_FORMAT_HTML_PRINT, EMFormatHTMLPrint)) +#define EM_FORMAT_HTML_PRINT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_FORMAT_HTML_PRINT, EMFormatHTMLPrintClass)) +#define EM_IS_FORMAT_HTML_PRINT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_FORMAT_HTML_PRINT)) +#define EM_IS_FORMAT_HTML_PRINT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_TYPE_FORMAT_HTML_PRINT)) +#define EM_FORMAT_HTML_PRINT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_FORMAT_HTML_PRINT, EMFormatHTMLPrintClass)) + +G_BEGIN_DECLS typedef struct _EMFormatHTMLPrint EMFormatHTMLPrint; typedef struct _EMFormatHTMLPrintClass EMFormatHTMLPrintClass; @@ -40,13 +59,16 @@ struct _EMFormatHTMLPrintClass { EMFormatHTMLClass parent_class; }; -GType em_format_html_print_get_type (void); -EMFormatHTMLPrint * em_format_html_print_new (EMFormatHTML *source, - GtkPrintOperationAction action); -void em_format_html_print_message (EMFormatHTMLPrint *efhp, - CamelFolder *folder, - const char *uid); -void em_format_html_print_raw_message (EMFormatHTMLPrint *efhp, - CamelMimeMessage *msg); +GType em_format_html_print_get_type (void); +EMFormatHTMLPrint * + em_format_html_print_new (EMFormatHTML *source, + GtkPrintOperationAction action); +void em_format_html_print_message (EMFormatHTMLPrint *efhp, + CamelFolder *folder, + const gchar *uid); +void em_format_html_print_raw_message(EMFormatHTMLPrint *efhp, + CamelMimeMessage *msg); + +G_END_DECLS -#endif /* ! _EM_FORMAT_HTML_PRINT_H */ +#endif /* EM_FORMAT_HTML_PRINT_H */ -- cgit v1.2.3