From 16b54010c94762d2032c7a61c6b2847f8ba2c3ea Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 21 Jan 2003 17:23:38 +0000 Subject: applied patch from Frederic Crozat svn path=/trunk/; revision=19540 --- mail/mail-callbacks.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'mail') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 7432506a27..b5cfbc3c56 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -39,9 +39,9 @@ #include -#include +#include #include -#include +#include #include #include @@ -2845,14 +2845,14 @@ do_mail_print (FolderBrowser *fb, gboolean preview) { GtkHTML *html; GnomePrintContext *print_context; - GnomePrintMaster *print_master; + GnomePrintJob *print_master; GnomePrintConfig *config = NULL; GtkDialog *dialog; gdouble line = 0.0; struct footer_info *info; if (!preview) { - dialog = (GtkDialog *) gnome_print_dialog_new (_("Print Message"), GNOME_PRINT_DIALOG_COPIES); + dialog = (GtkDialog *) gnome_print_dialog_new (NULL, _("Print Message"), GNOME_PRINT_DIALOG_COPIES); gtk_dialog_set_default_response (dialog, GNOME_PRINT_DIALOG_RESPONSE_PRINT); gtk_window_set_transient_for ((GtkWindow *) dialog, (GtkWindow *) fb); @@ -2872,14 +2872,14 @@ do_mail_print (FolderBrowser *fb, gboolean preview) } if (config) { - print_master = gnome_print_master_new_from_config (config); + print_master = gnome_print_job_new (config); gnome_print_config_unref (config); } else - print_master = gnome_print_master_new (); + print_master = gnome_print_job_new (NULL); /* paper size settings? */ /*gnome_print_master_set_paper (print_master, paper);*/ - print_context = gnome_print_master_get_context (print_master); + print_context = gnome_print_job_get_context (print_master); html = GTK_HTML (gtk_html_new ()); mail_display_initialize_gtkhtml (fb->mail_display, html); @@ -2900,15 +2900,15 @@ do_mail_print (FolderBrowser *fb, gboolean preview) fb->mail_display->printing = FALSE; - gnome_print_master_close (print_master); + gnome_print_job_close (print_master); if (preview){ GtkWidget *preview; - preview = gnome_print_master_preview_new (print_master, _("Print Preview")); + preview = gnome_print_job_preview_new (print_master, _("Print Preview")); gtk_widget_show (preview); } else { - int result = gnome_print_master_print (print_master); + int result = gnome_print_job_print (print_master); if (result == -1) e_notice (FB_WINDOW (fb), GTK_MESSAGE_ERROR, _("Printing of message failed")); -- cgit v1.2.3