diff options
author | Radek Doulik <rodo@src.gnome.org> | 2003-01-22 01:23:38 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2003-01-22 01:23:38 +0800 |
commit | 16b54010c94762d2032c7a61c6b2847f8ba2c3ea (patch) | |
tree | 3c0d499305e356946be44e5bdf5a9015a788280a /mail/mail-callbacks.c | |
parent | 52f0cb50fe082682c5c33e81c2e42a6e9a757123 (diff) | |
download | gsoc2013-evolution-16b54010c94762d2032c7a61c6b2847f8ba2c3ea.tar.gz gsoc2013-evolution-16b54010c94762d2032c7a61c6b2847f8ba2c3ea.tar.zst gsoc2013-evolution-16b54010c94762d2032c7a61c6b2847f8ba2c3ea.zip |
applied patch from Frederic Crozat <fcrozat@mandrakesoft.com>
svn path=/trunk/; revision=19540
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 20 |
1 files changed, 10 insertions, 10 deletions
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 <gtk/gtkmessagedialog.h> -#include <libgnomeprint/gnome-print-master.h> +#include <libgnomeprint/gnome-print-job.h> #include <libgnomeprintui/gnome-print-dialog.h> -#include <libgnomeprintui/gnome-print-master-preview.h> +#include <libgnomeprintui/gnome-print-job-preview.h> #include <bonobo/bonobo-widget.h> #include <bonobo/bonobo-socket.h> @@ -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")); |