Package: gtk

Function gtk:print-dialog-print-file

Lambda List

gtk:print-dialog-print-file (dialog parent setup file cancellable func)

Arguments

dialog -- a gtk:print-dialog object
parent -- a parent gtk:window widget
setup -- a gtk:print-setup instance to use
file -- a g:file object to print
cancellable -- a g:cancellable instance to cancel the operation
func -- a g:async-ready-callback callback funtion to call when the operation is complete

Details

The gtk:print-dialog-print-file function prints a file. If you pass nil as print setup, then this method will present a print dialog. Otherwise, it will attempt to print directly, without user interaction.

This method completes asynchronously. Use the gtk:print-dialog-print-file-finish function inside the g:async-ready-callback callback function to obtain the result of the operation.

Since 4.14
 

See also

#2024-11-10