Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Chris Vine
On Fri, 10 Feb 2017 18:55:39 +0100 Norbert de Jonge wrote: [snip] > I'm a fan of GTK+ and have always been a fan. The printing > functionalities are extremely versatile. But it's difficult for me to > understand why there is no function that requires only a buffer (of > any size), font type and fo

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Eric Cashon via gtk-app-devel-list
I didn't get to the paper size setup there. Just tried to make sense out of getting text to print on multiple pages as simply as possible. I don't have a printer that I can test with either so I am no help there. Printing is difficult. You can draw easy enough on a drawing area but then to

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Norbert de Jonge
> For a simple printing example in C this is my try at it. > > https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Csamples/print_buffer1.c Much appreciated Eric. A question about this code. When I use, for example, the gedit text editor, its File->Print... dialog includes a "Pa

Re: GtkPrintOperation; request for assistance

2017-02-09 Thread Eric Cashon via gtk-app-devel-list
Hi Norbert, I hit the reply instead of reply all on the first send. Try again. There is some information about printing at https://developer.gnome.org/gtkmm-tutorial/stable/chapter-printing.html.en It is in C++ but the C++ tutorial is very good. Sometimes I go there to figure out how to do

Re: GtkPrintOperation; request for assistance

2017-02-08 Thread Norbert de Jonge
Hi Emmanuele, Thank you for your reply. > [...], instead of generating a massive string and then > sending it to lpr, [...] I'm slightly confused, is that a description of what my code is currently doing? If it is: I was unaware that the code is generating a massive string. My intention and und

Re: GtkPrintOperation; request for assistance

2017-02-07 Thread Emmanuele Bassi
Hi; On 7 February 2017 at 00:09, Norbert de Jonge wrote: > Yesterday, I finished the migration of a 16+ year old GTK+ 1.2 > application to GTK+ 3.18. Congrats! > In previous releases of the application, printing was done by writing > directly to "lpr". I want code to be C99 compatible, so I re

GtkPrintOperation; request for assistance

2017-02-06 Thread Norbert de Jonge
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.