GtkPrintOperation; request for assistance



Hi all,

Yesterday, I finished the migration of a 16+ year old GTK+ 1.2
application to GTK+ 3.18.

The application is Ggradebook, the official GNU gradebook.
----------
Websites:
http://www.norbertdejonge.nl/Ggradebook/
https://www.gnu.org/software/ggradebook/

Changelog:
http://www.norbertdejonge.nl/Ggradebook/ChangeLog.txt

Latest release, source code:
http://www.norbertdejonge.nl/software/Ggradebook-0.92.tar.gz
----------

The migration process was easy.
Several people of Freenode's #gtk+ were helpful.
(Thanks!)

There's one known bug that was introduced during the migration.
A bug that I do not know how to fix.

In previous releases of the application, printing was done by writing
directly to "lpr". I want code to be C99 compatible, so I replaced the
popen() functions with GtkPrintOperation.

Currently, printing works properly, but both the preview and output end
after page 1. This is, of course, not the intended behavior.

A quick glance at the print.c source file shows the problem. The
relevant code is under "/*** print operation ***/" and in the PrintPage
function.

The solution... I don't know.

I would be grateful if someone is willing to took into this and help me
out. If substantial changes are required, I will gladly update future
releases to include an additional contributor entry in the package's
docs/AUTHORS.txt file.

I've been staring at, and experimenting with, the related code for
hours, and eventually decided to release with this known bug, because I
simply don't know how to fix the problem.

Hope to hear from you. :)

Best regards,
Norbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]