Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.SourcePrintJob

Method GTK2.SourcePrintJob()->print_range_async()


Method print_range_async

GTK2.SourcePrintJob print_range_async(GTK2.TextIter start, GTK2.TextIter end)

Description

Starts to print job asynchronously. This function will ready the job for printing and install an idle handler that will render one page at a time.

This function will not return immediately, as only page rendering is done asynchronously. Text retrieval and paginating happens within this function. Also, if highlighting is enabled, the whole buffer needs to be highlighted first.

To get notification when the job has finished, you must connect to the "finished" signal.