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();

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 ch...@cvine.freeserve.co.uk wrote: On Mon, 14 Oct 2013 19:34:53 +0200 Satz Klauer satzkla...@googlemail.com wrote: Hi, I try to print some vector data using GTK/Cairo

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