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.
the parent gtk.window.Window
the gtk.print_setup.PrintSetup to use
the gio.file.File to print
a gio.cancellable.Cancellable to cancel the operation
a callback to call when the operation is complete
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.