GNOME Bugzilla – Bug 345128
Need to store/restore GtkPageSetup
Last modified: 2006-06-16 23:05:50 UTC
I need a nice API way to serialize a GtkPageSetup object in order to recreate the entire "printer environment" specified by/for the user. (i.e. GtkPageSetup, GtkPrintSettings) I can save and restore a GtkPrintSettings using gtk_print_settings_foreach and gtk_print_settings_set. I am looking for something similar for GtkPageSetup. Currently, my code saves and restores a GtkPageSetup by using the 'get' and 'set' methods for each property (i.e. gtk_page_setup_get_orientation, gtk_page_setup_set_orientation, etc). The problem with this is that if the GtkPageSetup object has new properties in future, then my code won't automatically save/restore them.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 344515 ***