From 9ed9a99baddcb87eab366e4f939dc146f2db9401 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 31 Mar 2012 12:08:36 -0400 Subject: EMFormat: Add "session" as a constructor property. Pass it in instead of digging it out of EShellSettings. --- mail/em-format-html-print.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/em-format-html-print.c') diff --git a/mail/em-format-html-print.c b/mail/em-format-html-print.c index 2f9e556d9e..ed64a9ea07 100644 --- a/mail/em-format-html-print.c +++ b/mail/em-format-html-print.c @@ -618,8 +618,15 @@ EMFormatHTMLPrint * em_format_html_print_new (EMFormatHTML *source) { EMFormatHTMLPrint *efhp; + CamelSession *session; - efhp = g_object_new (EM_TYPE_FORMAT_HTML_PRINT, + g_return_val_if_fail (EM_IS_FORMAT_HTML (source), NULL); + + session = em_format_get_session (EM_FORMAT (source)); + + efhp = g_object_new ( + EM_TYPE_FORMAT_HTML_PRINT, + "session", session, "original-formatter", source, NULL); -- cgit v1.2.3