Skip to content

print dialog: Some API revisions

Matthias Clasen requested to merge print-dialog-revision into main

Make gtk_print_dialog_prepare_print_finish return a GtkPrintSetup object, which encapsulates all the data that needs to be transferred between the PreparePrint and the Print call, and make the print_file and print_stream methods take an extra GtkPrintSetup argument.

With some further cleanup, this makes the GtkPrintDialog object a proper builder object - you can create multiple print dialogs from the same GtkPrintDialog object, in parallel, and they won't interfere with each other.

Merge request reports