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 --- calendar/gui/print.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'calendar/gui/print.c') diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 64873bce2e..a9c6509530 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -35,11 +35,11 @@ #include #include #include -#include -#include +#include +#include #include #include -#include +#include #include #include #include @@ -2409,7 +2409,7 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, { #if 0 GnomePrintConfig *config; - GnomePrintMaster *gpm; + GnomePrintJob *gpm; GnomePrintContext *pc; int copies, collate; double l, r, t, b; @@ -2465,18 +2465,18 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, /* FIXME: allow configuration of paper size */ - gpm = gnome_print_master_new (); + gpm = gnome_print_job_new (); if (paper_info == NULL) paper_info = gnome_paper_with_name (gnome_paper_name_default ()); - gnome_print_master_set_paper (gpm, paper_info); + gnome_print_job_set_paper (gpm, paper_info); if (printer) - gnome_print_master_set_printer (gpm, printer); + gnome_print_job_set_printer (gpm, printer); - gnome_print_master_set_copies (gpm, copies, collate); + gnome_print_job_set_copies (gpm, copies, collate); - pc = gnome_print_master_get_context (gpm); + pc = gnome_print_job_get_context (gpm); l = gnome_paper_lmargin (paper_info); r = gnome_paper_pswidth (paper_info) @@ -2506,19 +2506,19 @@ print_calendar (GnomeCalendar *gcal, gboolean preview, time_t date, g_assert_not_reached (); } - gnome_print_master_close (gpm); + gnome_print_job_close (gpm); if (preview) { - GnomePrintMasterPreview *gpmp; + GnomePrintJobPreview *gpmp; gboolean landscape = FALSE; if (default_view == PRINT_VIEW_MONTH) landscape = TRUE; - gpmp = gnome_print_master_preview_new_with_orientation (gpm, _("Print Preview"), landscape); + gpmp = gnome_print_job_preview_new_with_orientation (gpm, _("Print Preview"), landscape); gtk_widget_show (GTK_WIDGET (gpmp)); } else { - gnome_print_master_print (gpm); + gnome_print_job_print (gpm); } g_object_unref (gpm); @@ -2531,7 +2531,7 @@ print_comp (CalComponent *comp, CalClient *client, gboolean preview) { #if 0 GnomePrinter *printer; - GnomePrintMaster *gpm; + GnomePrintJob *gpm; GnomePrintContext *pc; int copies, collate; double l, r, t, b; @@ -2581,18 +2581,18 @@ print_comp (CalComponent *comp, CalClient *client, gboolean preview) /* FIXME: allow configuration of paper size */ - gpm = gnome_print_master_new (); + gpm = gnome_print_job_new (); if (paper_info == NULL) paper_info = gnome_paper_with_name (gnome_paper_name_default ()); - gnome_print_master_set_paper (gpm, paper_info); + gnome_print_job_set_paper (gpm, paper_info); if (printer) - gnome_print_master_set_printer (gpm, printer); + gnome_print_job_set_printer (gpm, printer); - gnome_print_master_set_copies (gpm, copies, collate); + gnome_print_job_set_copies (gpm, copies, collate); - pc = gnome_print_master_get_context (gpm); + pc = gnome_print_job_get_context (gpm); l = gnome_paper_lmargin (paper_info); r = gnome_paper_pswidth (paper_info) @@ -2603,16 +2603,16 @@ print_comp (CalComponent *comp, CalClient *client, gboolean preview) print_comp_item (pc, comp, client, l, r, t, b); - gnome_print_master_close (gpm); + gnome_print_job_close (gpm); if (preview) { - GnomePrintMasterPreview *gpmp; + GnomePrintJobPreview *gpmp; - gpmp = gnome_print_master_preview_new (gpm, + gpmp = gnome_print_job_preview_new (gpm, _("Print Preview")); gtk_widget_show (GTK_WIDGET (gpmp)); } else { - gnome_print_master_print (gpm); + gnome_print_job_print (gpm); } g_object_unref (gpm); -- cgit