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 509909 - Print Preview does not work
Print Preview does not work
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Printing
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-01-16 14:44 UTC by John K. Herreshoff
Modified: 2009-05-16 18:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John K. Herreshoff 2008-01-16 14:44:04 UTC
Please describe the problem:
I'm running Slackware 12 / linux.  I've updated libraries and the program compiles and runs.  The program prints without a problem, however, in the Print Dialog, the Print Preview button does not work correctly...  Something is going on in the background, as a progress bar moves, but then a small popup box flashes for an eyeblink, and there is no print preview screen.

Steps to reproduce:
1. Click the print preview button in the print dialog screen/window.
2. 
3. 


Actual results:
As described above:  A progress bar moves, a popup box flashes, but no print preview.

Expected results:
I'd see the print preview :-)

Does this happen every time?
Yes, without fail :-(

Other information:
I have Kdevelop, and it does not ever get to print-preview.c, which is to say, if I set a breakpoint in print-preview.c, Kdevelop never stops.  I can set a breakpoint in main.c and stop the program.
Comment 1 Sven Neumann 2008-01-16 17:10:41 UTC
GTK+ does the preview, there is absolutely no code in GIMP involved.
Comment 2 Sven Neumann 2008-01-16 17:14:01 UTC
As far as I know you need to have evince installed for the Preview functionality to work. But I'll leave it up to the GTK+ developers to deal with this.
Comment 3 Sven Neumann 2008-01-16 17:17:28 UTC
GTK+ should probably provide a fallback in case that evince can not be launched. This could be as simple as opening a window with a close button and rendering the Cairo surface to it. I guess this could be written in a few lines of code. Actually we even had such code in the Print plug-in in GIMP at some point, but removed it in favor of using the default GTK+ print preview mechanism on all platforms.
Comment 4 Matthias Clasen 2009-04-13 00:54:16 UTC
gtk-print-preview-command is a setting so that desktop environments can set it to something suitable. evince is not hardcoded in GTK+. You can even set that setting in your gtkrc file.
Comment 5 Sven Neumann 2009-05-16 18:00:00 UTC
IMO it would still be reasonable to provide a simple fallback so that print preview works without a third-party viewer installed. But it's up to the GTK+ team to decide this.