Show printing dialogue

2013-10-21 Thread Satz Klauer
Hi, currently I'm using following code to initialise for printing: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_allow_async(op,TRUE); gtk_print_operation_set_n_pages(op, 1); gtk_print_operation_set_unit (op,GTK_UNIT_POINTS); g_signal_connect (op, "draw_page", G_

Re: Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
I just want to draw a bunch of lines - simple polygons, no filling... On Mon, Oct 14, 2013 at 7:55 PM, Chris Vine wrote: > On Mon, 14 Oct 2013 19:34:53 +0200 > Satz Klauer wrote: > >> Hi, >> >> I try to print some vector data using GTK/Cairo. Unfortunately my >

Printing with GTK/Cairo produces only empty pages

2013-10-14 Thread Satz Klauer
Hi, I try to print some vector data using GTK/Cairo. Unfortunately my printer only produces empty pages, means there is no print operation, the paper sheets are just moved. That's how I'm initialising everything: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_all

gtk_print_operation_run() blocks and ignores callback

2013-07-04 Thread Satz Klauer
I want to print out some vectordata using GTK/Linux. That's what I already have: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_n_pages(op, 1); gtk_print_operation_set_unit (op,GTK_UNIT_POINTS); g_signal_connect (op, "draw_page", G_CALLBACK(draw_page), NULL); if (

Simple vector graphics printing example?

2013-01-25 Thread Satz Klauer
Hi, I plan to print out some vector data using the GTK printing system. I already found the API description but what I'm missing is a general overview that describes what has to be used in which order to send such graphics to a printer. So my question: is there a simple printing example code or