Bug 595879
Description
Máirín Duffy
2010-05-25 20:28:04 UTC
Created attachment 416510 [details]
screenshot showing broken print preview - there should be two pages on the side shown, not one. the total doc size should be 2 pages not 4
Created attachment 416511 [details]
screenshot showing pdf output - it comes out correctly, not like in the preview
Created attachment 416512 [details]
test txt file used
Created attachment 416513 [details]
pdf output of test txt file from gedit
Note I was only able to reproduce this issue with gedit's print preview. If I try to print out multi-page sides from Evince, the print preview comes out correctly. This is a limitation of gedit's builtin print preview. Assigning this to Marek. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Created attachment 425674 [details]
use gtk+ print preview
Hi,
I had a look at it. The problem is that gedit uses GtkPrintOperation, which is a high level API, but tries to do print preview itself (which is already part of GtkPrintOperation). Gedit would need access to some private members of GtkPrintOperation class to be able to draw preview correctly or it has to do the whole preview itself.
The solution can be to use GtkPrintOperation's print preview instead of the one in gedit. There is only 1 major difference I see in this case. It is that the window with print preview will be floating instead of embedded.
The positive thing I see is that it unifies print preview with the rest of Gnome.
What do you think about it Matthias (it is quite a big change in comparison with upstream) ?
Regards
Marek
I'd really like to see this at least being in an upstream bug, with some agreement that this may be the right thing forward... Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. |