After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724037 - Miscellaneous print fixes
Miscellaneous print fixes
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
3.11.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-10 14:59 UTC by Debarshi Ray
Modified: 2014-02-11 07:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
documents: Miscellaneous printing fixes (2.58 KB, patch)
2014-02-10 15:02 UTC, Debarshi Ray
committed Details | Review
notifications: Remove unused code (801 bytes, patch)
2014-02-10 15:02 UTC, Debarshi Ray
committed Details | Review
Screenshot of error from evince (200.79 KB, image/png)
2014-02-10 15:08 UTC, Debarshi Ray
  Details
Screenshot of error from gnome-documents (255.58 KB, image/png)
2014-02-10 15:10 UTC, Debarshi Ray
  Details

Description Debarshi Ray 2014-02-10 14:59:26 UTC
Two things:

1) We are not showing any indication of a document failing to print.

2) We are not exiting the selection mode immediately after the user action has completed. Instead we wait for the printing to actually finish. In some cases, a document might take a few seconds to print and we keep lingering in selection mode.
Comment 1 Debarshi Ray 2014-02-10 15:02:32 UTC
Created attachment 268680 [details] [review]
documents: Miscellaneous printing fixes
Comment 2 Debarshi Ray 2014-02-10 15:02:58 UTC
Created attachment 268681 [details] [review]
notifications: Remove unused code
Comment 3 Debarshi Ray 2014-02-10 15:06:45 UTC
(From a downstream bug report)

Here is one way to trigger a printing error:
 - Select a PostScript (*.ps) file
 - Try to print to file and choose PDF as the output
Comment 4 Debarshi Ray 2014-02-10 15:08:08 UTC
Created attachment 268682 [details]
Screenshot of error from evince
Comment 5 Debarshi Ray 2014-02-10 15:10:35 UTC
Created attachment 268683 [details]
Screenshot of error from gnome-documents

This is loosely based on the error dialog that is shown for sharing errors. Not sure if the message-type should be ERROR or WARNING, or if the button should be OK or CLOSE.
Comment 6 Debarshi Ray 2014-02-10 16:03:12 UTC
Bug 724044 is about avoiding the PostScript / PDF situation all together.

However, I don't think we can predict and avoid all possible eventualities that might cause the print to fail.
Comment 7 Cosimo Cecchi 2014-02-10 16:28:26 UTC
Review of attachment 268680 [details] [review]:

Thanks - looks good to me. We can follow-up with tweaks to the error dialog if needed.
Comment 8 Cosimo Cecchi 2014-02-10 16:29:06 UTC
Review of attachment 268681 [details] [review]:

Sure
Comment 9 Debarshi Ray 2014-02-11 07:50:22 UTC
Thanks for the review.