From cd5ff486fb02451645f8b4b39608edca2da5e4a2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 31 Jan 2009 18:02:22 +0000 Subject: Let the mailer handle composer printing. Start roughing in the mailer search bar. svn path=/branches/kill-bonobo/; revision=37199 --- composer/e-composer-actions.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'composer/e-composer-actions.c') diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c index ecf9f179f6..71065d6996 100644 --- a/composer/e-composer-actions.c +++ b/composer/e-composer-actions.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include "misc/e-charset-picker.h" @@ -184,15 +183,9 @@ action_print_cb (GtkAction *action, EMsgComposer *composer) { GtkPrintOperationAction print_action; - CamelMimeMessage *message; - EMFormatHTMLPrint *efhp; print_action = GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG; - message = e_msg_composer_get_message (composer, 1); - - efhp = em_format_html_print_new (NULL, print_action); - em_format_html_print_raw_message (efhp, message); - g_object_unref (efhp); + e_msg_composer_print (composer, print_action); } static void @@ -200,15 +193,9 @@ action_print_preview_cb (GtkAction *action, EMsgComposer *composer) { GtkPrintOperationAction print_action; - CamelMimeMessage *message; - EMFormatHTMLPrint *efhp; print_action = GTK_PRINT_OPERATION_ACTION_PREVIEW; - message = e_msg_composer_get_message_print (composer, 1); - - efhp = em_format_html_print_new (NULL, print_action); - em_format_html_print_raw_message (efhp, message); - g_object_unref (efhp); + e_msg_composer_print (composer, print_action); } static void -- cgit