GNOME Bugzilla – Bug 662160
gtk_print_operation_cancel fails
Last modified: 2011-11-07 18:16:23 UTC
When gtk_print_operation_cancel is called from the draw-page handler of a preview operation (using the default pdf review), it fails to stop the operation. It does work correctly for a print operation, even for a print operation when printing to a file! As an example, use Gnumeric from current git and the file from bug #662056. When previewing try to stop the preview by clicking cancel. This should cancel the operation via gtk_print_operation_cancel bu tfails!
It doesn't look like preview_print_idle (in gtkprintoperation.c) has any idea that the operation might be cancelled. This is in contrast to print_pages_idle.
*** Bug 662056 has been marked as a duplicate of this bug. ***
Created attachment 199708 [details] [review] Tentative patch This patch implements cancels for previews. Ok to commit?
Created attachment 199709 [details] [review] Tentative patch This patch implements cancels for previews. Ok to commit?
Review of attachment 199709 [details] [review]: The patch looks good to me. Thank you Marek
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.