GNOME Bugzilla – Bug 362854
should migrate to new Gtk+ printing API
Last modified: 2006-12-08 20:18:47 UTC
gthumb currently uses libgnomeprint which is poorly maintained and poorly documented. The existing print dialogs are confusing (for instance, page orientation is set in two places), and missing some basic features (print multiple copies, collate).
gthumb should use the new Gtk+ printing API in the future. The basic API seems to handle all the basic features needed by gthumb: pages per sheet, number of copies, orientation, collation, etc.
See http://www.gnome.org/~alexl/presentations/guadec2006-printing.pdf for details.
Porting the existing code to the new print system is way out of my league, but ping me if you want to try it! (I settled on gthumb as my viewer of choice because it had usable printing, unlike many other linux viewers.)
Update: this is being worked on... stay tuned...
*** Bug 357902 has been marked as a duplicate of this bug. ***
Created attachment 77813 [details] [review]
First attempt to implement gtk-printing
OK, here is the first attempt to implement gtk-printing (rather than libgnomeprint).
It works quite well, except for one huge flaw: the images are rendered at 72 dpi, which looks horrible. (This is true of print-to-pdf, print-to-ps, and print-to-a-real-printer).
Right now, I don't know how to fix that. Help would be appreciated!
This patch was developed by Alex Pasca, with a few tweaks by me.
This patch applies to CVS HEAD.
Created attachment 77960 [details] [review]
Second gtk-print attempt
This patch now implements gtkprint, with output at 300 dpi.
There is a crasher bug when printing utf8 comments. It's being worked on.
Created attachment 77984 [details] [review]
Final working patch.
This patch seems to work well. I will be committing it.