PrintDialog.print
void print(gtk.window.Window parent = null, gtk.print_setup.PrintSetup setup = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)This function prints content from a stream.
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.printFinish to obtain the results.
Parameters
parent | the parent gtk.window.Window |
setup | the gtk.print_setup.PrintSetup to use |
cancellable | a gio.cancellable.Cancellable to cancel the operation |
callback | a callback to call when the operation is complete |