[evince] libview: return early when print job was cancelled during page rendering
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: return early when print job was cancelled during page rendering
- Date: Sat, 4 Dec 2010 14:58:39 +0000 (UTC)
commit ae4835dbed02ae928d96fb6360f7d5c62416044b
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Dec 4 15:51:57 2010 +0100
libview: return early when print job was cancelled during page rendering
libview/ev-jobs.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 3a74876..816a56b 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -1560,6 +1560,9 @@ ev_job_print_run (EvJob *job)
ev_document_doc_mutex_unlock ();
+ if (g_cancellable_is_cancelled (job->cancellable))
+ return FALSE;
+
cr_status = cairo_status (job_print->cr);
if (cr_status == CAIRO_STATUS_SUCCESS) {
ev_job_succeeded (job);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]