aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-config-web-view-gtkhtml.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-03 22:54:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-03 23:00:24 +0800
commitd6105626509c73da6d0184edc0b864254d97cbd3 (patch)
tree8f06178d09bedfd77519222c64f77f32e6903b28 /modules/mail/e-mail-config-web-view-gtkhtml.h
parent94eb069ea357d00826c5a99a181f8a7fe86c15cd (diff)
downloadgsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar.gz
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar.bz2
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar.lz
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar.xz
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.tar.zst
gsoc2013-evolution-d6105626509c73da6d0184edc0b864254d97cbd3.zip
Bug 687400 - Composer settings not applied
EMailConfigWebView is an extension that configures EWebView instances. This used to cover both the email formatter and the email composer, but with the email formatter now using WebKit/GTK+ and the email composer still using GtkHtml, the composer was left unconfigured. Add an EMailConfigWebViewGtkHTML extension that targets EWebViewGtkHTML instances and applies the relevant settings, and remove all the GtkHTML contortions from EMailConfigWebView.
Diffstat (limited to 'modules/mail/e-mail-config-web-view-gtkhtml.h')
-rw-r--r--modules/mail/e-mail-config-web-view-gtkhtml.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/modules/mail/e-mail-config-web-view-gtkhtml.h b/modules/mail/e-mail-config-web-view-gtkhtml.h
new file mode 100644
index 0000000000..7391aa8628
--- /dev/null
+++ b/modules/mail/e-mail-config-web-view-gtkhtml.h
@@ -0,0 +1,65 @@
+/*
+ * e-mail-config-web-view-gtkhtml.h
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+#ifndef E_MAIL_CONFIG_WEB_VIEW_GTKHTML_H
+#define E_MAIL_CONFIG_WEB_VIEW_GTKHTML_H
+
+#include <libebackend/libebackend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML \
+ (e_mail_config_web_view_gtkhtml_get_type ())
+#define E_MAIL_CONFIG_WEB_VIEW_GTKHTML(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML, EMailConfigWebViewGtkHTML))
+#define E_MAIL_CONFIG_WEB_VIEW_GTKHTML_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML, EMailConfigWebViewGtkHTMLClass))
+#define E_IS_MAIL_CONFIG_WEB_VIEW_GTKHTML(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML))
+#define E_IS_MAIL_CONFIG_WEB_VIEW_GTKHTML_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML))
+#define E_MAIL_CONFIG_WEB_VIEW_GTKHTML_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_MAIL_CONFIG_WEB_VIEW_GTKHTML, EMailConfigWebViewGtkHTMLClass))
+
+G_BEGIN_DECLS
+
+typedef struct _EMailConfigWebViewGtkHTML EMailConfigWebViewGtkHTML;
+typedef struct _EMailConfigWebViewGtkHTMLClass EMailConfigWebViewGtkHTMLClass;
+typedef struct _EMailConfigWebViewGtkHTMLPrivate EMailConfigWebViewGtkHTMLPrivate;
+
+struct _EMailConfigWebViewGtkHTML {
+ EExtension parent;
+ EMailConfigWebViewGtkHTMLPrivate *priv;
+};
+
+struct _EMailConfigWebViewGtkHTMLClass {
+ EExtensionClass parent_class;
+};
+
+GType e_mail_config_web_view_gtkhtml_get_type
+ (void) G_GNUC_CONST;
+void e_mail_config_web_view_gtkhtml_type_register
+ (GTypeModule *type_module);
+
+G_END_DECLS
+
+#endif /* E_MAIL_CONFIG_WEB_VIEW_GTKHTML_H */