1 diff -aurN glabels-1.91.20030513.orig/configure.in glabels-1.91.20030513/configure.in
2 --- glabels-1.91.20030513.orig/configure.in Sun Apr 27 05:55:45 2003
3 +++ glabels-1.91.20030513/configure.in Tue May 13 14:26:18 2003
5 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
6 libbonobo-2.0 >= $LIBBONOBO_REQUIRED \
7 libxml-2.0 >= $LIBXML_REQUIRED \
8 -libgnomeprint-2.0 >= $LIBGNOMEPRINT_REQUIRED \
9 -libgnomeprintui-2.0 >= $LIBGNOMEPRINTUI_REQUIRED \
10 +libgnomeprint-2.2 >= $LIBGNOMEPRINT_REQUIRED \
11 +libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED \
12 libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED \
13 gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED \
15 diff -aurN glabels-1.91.20030513.orig/src/glabels-batch.c glabels-1.91.20030513/src/glabels-batch.c
16 --- glabels-1.91.20030513.orig/src/glabels-batch.c Tue Dec 3 03:50:13 2002
17 +++ glabels-1.91.20030513/src/glabels-batch.c Tue May 13 14:29:40 2003
22 -#include <libgnomeprint/gnome-print-master.h>
23 +#include <libgnomeprint/gnome-print-job.h>
25 #include "merge-init.h"
26 #include "xml-label.h"
29 GSList *p, *file_list = NULL;
31 - GnomePrintMaster *master = NULL;
32 + GnomePrintJob *master = NULL;
34 GnomePrintConfig *config = NULL;
35 glLabel *label = NULL;
37 if ( status == XML_LABEL_OK ) {
39 if ( master == NULL ) {
40 - master = gnome_print_master_new ();
41 + master = gnome_print_job_new (NULL);
44 gl_print_batch (master, label, n_sheets, n_copies,
46 if ( master != NULL ) {
48 abs_fn = gl_util_make_absolute ( output );
49 - gnome_print_master_print_to_file (master, abs_fn);
50 + gnome_print_job_print_to_file (master, abs_fn);
53 - gnome_print_master_close (master);
54 - gnome_print_master_print (master);
55 + gnome_print_job_close (master);
56 + gnome_print_job_print (master);
58 g_object_unref (master);
60 diff -aurN glabels-1.91.20030513.orig/src/print-dialog.c glabels-1.91.20030513/src/print-dialog.c
61 --- glabels-1.91.20030513.orig/src/print-dialog.c Fri Dec 27 17:55:18 2002
62 +++ glabels-1.91.20030513/src/print-dialog.c Tue May 13 15:05:42 2003
66 #include <libgnomeprint/gnome-print-paper.h>
67 -#include <libgnomeprintui/gnome-printer-dialog.h>
68 #include <libgnomeprintui/gnome-print-dialog.h>
69 -#include <libgnomeprint/gnome-print-master.h>
70 -#include <libgnomeprintui/gnome-print-master-preview.h>
71 +#include <libgnomeprint/gnome-print-job.h>
72 +#include <libgnomeprintui/gnome-print-job-preview.h>
74 #include "print-dialog.h"
77 vbox = gl_hig_vbox_new (GL_HIG_VBOX_OUTER);
80 - gnome_printer_selection_new (gnome_print_config_default ());
81 + gnome_printer_selector_new (gnome_print_config_default ());
82 gtk_widget_show (printer_select);
83 gl_hig_vbox_add_widget (GL_HIG_VBOX(vbox), printer_select);
86 printer_select = g_object_get_data (G_OBJECT(dlg),
89 - config = gnome_printer_selection_get_config (GNOME_PRINTER_SELECTION(printer_select));
90 + config = gnome_printer_selector_get_config (printer_select);
93 gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
95 gboolean outline_flag,
96 gboolean reverse_flag)
98 - GnomePrintMaster *master;
99 + GnomePrintJob *master;
101 - master = gnome_print_master_new_from_config (config);
102 + master = gnome_print_job_new (config);
103 gl_print_simple (master, label, n_sheets, first, last,
104 outline_flag, reverse_flag);
105 - gnome_print_master_close (master);
106 + gnome_print_job_close (master);
109 GtkWidget *preview_widget =
110 - gnome_print_master_preview_new (master, _("Print preview"));
111 + gnome_print_job_preview_new (master, _("Print preview"));
112 gtk_widget_show (GTK_WIDGET (preview_widget));
114 - gnome_print_master_print (master);
115 + gnome_print_job_print (master);
118 g_object_unref (G_OBJECT (master));
120 gboolean outline_flag,
121 gboolean reverse_flag)
123 - GnomePrintMaster *master;
124 + GnomePrintJob *master;
126 - master = gnome_print_master_new_from_config (config);
127 + master = gnome_print_job_new (config);
128 if ( collate_flag ) {
129 gl_print_merge_collated (master, label,
131 @@ -357,14 +356,14 @@
133 outline_flag, reverse_flag);
135 - gnome_print_master_close (master);
136 + gnome_print_job_close (master);
139 GtkWidget *preview_widget =
140 - gnome_print_master_preview_new (master, _("Print preview"));
141 + gnome_print_job_preview_new (master, _("Print preview"));
142 gtk_widget_show (GTK_WIDGET (preview_widget));
144 - gnome_print_master_print (master);
145 + gnome_print_job_print (master);
148 g_object_unref (G_OBJECT (master));
149 diff -aurN glabels-1.91.20030513.orig/src/print.c glabels-1.91.20030513/src/print.c
150 --- glabels-1.91.20030513.orig/src/print.c Sat Jan 25 01:43:45 2003
151 +++ glabels-1.91.20030513/src/print.c Tue May 13 14:33:19 2003
155 #include <libgnomeprint/gnome-print-paper.h>
156 -#include <libgnomeprintui/gnome-printer-dialog.h>
157 +#include <libgnomeprintui/gnome-print-dialog.h>
162 /*=========================================================================*/
163 /* Private function prototypes. */
164 /*=========================================================================*/
165 -static PrintInfo *print_info_new (GnomePrintMaster *master,
166 +static PrintInfo *print_info_new (GnomePrintJob *master,
169 static void print_info_free (PrintInfo **pi);
171 /* Simple (no merge data) print command. */
172 /*****************************************************************************/
174 -gl_print_simple (GnomePrintMaster *master,
175 +gl_print_simple (GnomePrintJob *master,
180 /* Merge print command (collated copies) */
181 /*****************************************************************************/
183 -gl_print_merge_collated (GnomePrintMaster *master,
184 +gl_print_merge_collated (GnomePrintJob *master,
189 /* Merge print command (uncollated copies) */
190 /*****************************************************************************/
192 -gl_print_merge_uncollated (GnomePrintMaster *master,
193 +gl_print_merge_uncollated (GnomePrintJob *master,
198 /* Batch print. Call appropriate function above. */
199 /*****************************************************************************/
201 -gl_print_batch (GnomePrintMaster *master,
202 +gl_print_batch (GnomePrintJob *master,
207 /* PRIVATE. new print info structure */
208 /*---------------------------------------------------------------------------*/
210 -print_info_new (GnomePrintMaster *master,
211 +print_info_new (GnomePrintJob *master,
214 PrintInfo *pi = g_new0 (PrintInfo, 1);
219 - pi->pc = gnome_print_master_get_context (master);
220 - pi->config = gnome_print_master_get_config (master);
221 + pi->pc = gnome_print_job_get_context (master);
222 + pi->config = gnome_print_job_get_config (master);
224 if ((template != NULL) && (template->page_size != NULL)) {
226 diff -aurN glabels-1.91.20030513.orig/src/print.h glabels-1.91.20030513/src/print.h
227 --- glabels-1.91.20030513.orig/src/print.h Sun Dec 8 07:31:57 2002
228 +++ glabels-1.91.20030513/src/print.h Tue May 13 14:39:40 2003
233 -#include <libgnomeprint/gnome-print-master.h>
234 -#include <libgnomeprintui/gnome-print-master-preview.h>
235 +#include <libgnomeprint/gnome-print-job.h>
236 +#include <libgnomeprintui/gnome-print-job-preview.h>
241 -void gl_print_simple (GnomePrintMaster *master,
242 +void gl_print_simple (GnomePrintJob *master,
247 gboolean outline_flag,
248 gboolean reverse_flag);
250 -void gl_print_merge_collated (GnomePrintMaster *master,
251 +void gl_print_merge_collated (GnomePrintJob *master,
255 gboolean outline_flag,
256 gboolean reverse_flag);
258 -void gl_print_merge_uncollated (GnomePrintMaster *master,
259 +void gl_print_merge_uncollated (GnomePrintJob *master,
263 gboolean outline_flag,
264 gboolean reverse_flag);
266 -void gl_print_batch (GnomePrintMaster *master,
267 +void gl_print_batch (GnomePrintJob *master,