[evolution] Add EMailFormatterPrintExtension.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Add EMailFormatterPrintExtension.
- Date: Fri, 7 Dec 2012 22:50:24 +0000 (UTC)
commit 076006fae27f48893000a56fd15d02b60e4d0aa5
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Dec 7 15:14:31 2012 -0500
Add EMailFormatterPrintExtension.
This is an abstract base type for formatter extensions which are
intended only for use by EMailFormatterPrint.
em-format/e-mail-formatter-print-headers.c | 5 +--
em-format/e-mail-formatter-print.c | 17 ++++++++++++++
em-format/e-mail-formatter-print.h | 33 +++++++++++++++++++++++----
3 files changed, 47 insertions(+), 8 deletions(-)
---
diff --git a/em-format/e-mail-formatter-print-headers.c b/em-format/e-mail-formatter-print-headers.c
index 8f1745b..17e1f78 100644
--- a/em-format/e-mail-formatter-print-headers.c
+++ b/em-format/e-mail-formatter-print-headers.c
@@ -24,8 +24,7 @@
#include <glib/gi18n-lib.h>
-#include <em-format/e-mail-formatter-extension.h>
-#include <em-format/e-mail-formatter.h>
+#include <em-format/e-mail-formatter-print.h>
#include <em-format/e-mail-formatter-utils.h>
#include <em-format/e-mail-inline-filter.h>
#include <libemail-engine/e-mail-utils.h>
@@ -41,7 +40,7 @@ typedef EMailFormatterExtensionClass EMailFormatterPrintHeadersClass;
G_DEFINE_TYPE (
EMailFormatterPrintHeaders,
e_mail_formatter_print_headers,
- E_TYPE_MAIL_FORMATTER_EXTENSION)
+ E_TYPE_MAIL_FORMATTER_PRINT_EXTENSION)
static const gchar *formatter_mime_types[] = {
"application/vnd.evolution.headers",
diff --git a/em-format/e-mail-formatter-print.c b/em-format/e-mail-formatter-print.c
index 8e56445..7016b2f 100644
--- a/em-format/e-mail-formatter-print.c
+++ b/em-format/e-mail-formatter-print.c
@@ -282,3 +282,20 @@ e_mail_formatter_print_get_type (void)
return type;
}
+/* ------------------------------------------------------------------------- */
+
+G_DEFINE_ABSTRACT_TYPE (
+ EMailFormatterPrintExtension,
+ e_mail_formatter_print_extension,
+ E_TYPE_MAIL_FORMATTER_EXTENSION)
+
+static void
+e_mail_formatter_print_extension_class_init (EMailFormatterPrintExtensionClass *class)
+{
+}
+
+static void
+e_mail_formatter_print_extension_init (EMailFormatterPrintExtension *extension)
+{
+}
+
diff --git a/em-format/e-mail-formatter-print.h b/em-format/e-mail-formatter-print.h
index 1783cc0..ca67a13 100644
--- a/em-format/e-mail-formatter-print.h
+++ b/em-format/e-mail-formatter-print.h
@@ -16,10 +16,11 @@
*
*/
-#ifndef E_MAIL_FORMATTER_PRINT_H_
-#define E_MAIL_FORMATTER_PRINT_H_
+#ifndef E_MAIL_FORMATTER_PRINT_H
+#define E_MAIL_FORMATTER_PRINT_H
#include <em-format/e-mail-formatter.h>
+#include <em-format/e-mail-formatter-extension.h>
/* Standard GObject macros */
#define E_TYPE_MAIL_FORMATTER_PRINT \
@@ -54,10 +55,32 @@ struct _EMailFormatterPrintClass {
EMailFormatterClass parent_class;
};
-GType e_mail_formatter_print_get_type (void);
+GType e_mail_formatter_print_get_type (void) G_GNUC_CONST;
+EMailFormatter *
+ e_mail_formatter_print_new (void);
-EMailFormatter * e_mail_formatter_print_new (void);
+G_END_DECLS
+
+/* ------------------------------------------------------------------------- */
+
+/* Standard GObject macros */
+#define E_TYPE_MAIL_FORMATTER_PRINT_EXTENSION \
+ (e_mail_formatter_print_extension_get_type ())
+
+G_BEGIN_DECLS
+
+/**
+ * EMailFormatterPrintExtension:
+ *
+ * This is an abstract base type for formatter extensions which are
+ * intended only for use by #EMailFormatterPrint.
+ **/
+typedef EMailFormatterExtension EMailFormatterPrintExtension;
+typedef EMailFormatterExtensionClass EMailFormatterPrintExtensionClass;
+
+GType e_mail_formatter_print_extension_get_type
+ (void) G_GNUC_CONST;
G_END_DECLS
-#endif /* E_MAIL_FORMATTER_PRINT_H_ */
+#endif /* E_MAIL_FORMATTER_PRINT_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]