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-display.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 8f20169636..2a42beb943 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -916,9 +916,13 @@ em_format_html_display_get_type (void) } EMFormatHTMLDisplay * -em_format_html_display_new (void) +em_format_html_display_new (CamelSession *session) { - return g_object_new (EM_TYPE_FORMAT_HTML_DISPLAY, NULL); + g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL); + + return g_object_new ( + EM_TYPE_FORMAT_HTML_DISPLAY, + "session", session, NULL); } /* ********************************************************************** */ -- cgit v1.2.3