ev_print_operation_set_print_settings and ev_print_operation_set_default_page_setup overwrite each other
Submitted by richard
Link to original bug (#683479)
Description
In the GNU/Denemo music publishing program the user repeatedly generates sets of PDF files for both A4 and Letter sizes using the Print To File option of the print dialog. The Denemo program stores the output URI and the page size for a given layout of the music score and its parts. So the requirement is to set the default page size and orientation and default output URI before calling ev_print_operation_run (). At first I set up the GtkPrintSettings and called ev_print_operation_set_print_settings (printop, Denemo.print_settings); but the page size and orientation were ignored. In the print dialog with Print to File selected, the page size and orientation buttons showed A4 and Portrait and were insensitive, ie could not be set. Then I set up a GtkPageSetup and called ev_print_operation_set_default_page_setup (printop, setup); but the GtkPageSetup does not allow setting the URI, so the user cannot refresh the set of published parts by simply accepting the default, but has to remember where they published them.
If I try to do both, one overwrites the other. One thing unclear is if I call ev_print_operation_get_settings() whether the returned structure is a copy or the one that ev_print_operation_run () will use.
Version: 2.20.x