Re: gtk_print_operation_run hang

2016-02-08 Thread Matthew Allen
Ok some new information. There is an incompatibility with g_idle_add and printing. I'm using g_idle_add for my own callback elsewhere in the application, and if I comment that out the printing starts working. What I think is happening is that the call to: priv->print_pages_idle_id = gdk_threads_ad

Re: gtk_print_operation_run hang

2016-02-08 Thread Matthew Allen
I'm still trying to get this working. Given this basic code: static void begin_print(GtkPrintOperation *operation, GtkPrintContext *context,gpointer data) { gtk_print_operation_set_n_pages(operation, 1); printf("begin_print\n"); } static void draw_page(GtkPrintOperation *operation,