Add an GError parameter.

2006-06-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintbackend.h:
	* gtk/gtkprintbackend.c (gtk_print_backend_print_stream): Add an
	GError parameter.

	* modules/printbackends/file/gtkprintbackendfile.c
	(gtk_print_backend_file_print_stream):
	* modules/printbackends/lpr/gtkprintbackendlpr.c
	(gtk_print_backend_lpr_print_stream):
	* modules/printbackends/cups/gtkprintbackendcups.c
	(gtk_print_backend_cups_print_stream):
	* gtk/gtkprintjob.c (gtk_print_job_send): Update all callers and
	implementations.
This commit is contained in:
Matthias Clasen
2006-06-21 05:56:14 +00:00
committed by Matthias Clasen
parent 2c91a6552e
commit bc1dbd58d5
8 changed files with 95 additions and 50 deletions

View File

@ -648,6 +648,7 @@ gtk_print_job_send (GtkPrintJob *job,
GError **error)
{
GtkPrintJobPrivate *priv;
GError *print_error = NULL;
g_return_val_if_fail (GTK_IS_PRINT_JOB (job), FALSE);
@ -656,12 +657,16 @@ gtk_print_job_send (GtkPrintJob *job,
gtk_print_job_set_status (job, GTK_PRINT_STATUS_SENDING_DATA);
lseek (priv->spool_file_fd, 0, SEEK_SET);
gtk_print_backend_print_stream (priv->backend,
job,
gtk_print_backend_print_stream (priv->backend, job,
priv->spool_file_fd,
callback,
user_data,
dnotify);
callback, user_data, dnotify,
&print_error);
if (print_error)
{
g_propagate_error (error, print_error);
return FALSE;
}
return TRUE;
}