PrintDialog.printFile

void printFile(gtk.window.Window parent, gtk.print_setup.PrintSetup setup, gio.file.File file, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

This function prints a file.

If you pass NULL as setup, then this method will present a print dialog. Otherwise, it will attempt to print directly, without user interaction.

The callback will be called when the printing is done. It should call gtk.print_dialog.PrintDialog.printFileFinish to obtain the results.

Parameters

parentthe parent gtk.window.Window
setupthe gtk.print_setup.PrintSetup to use
filethe gio.file.File to print
cancellablea gio.cancellable.Cancellable to cancel the operation
callbacka callback to call when the operation is complete