After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345128 - Need to store/restore GtkPageSetup
Need to store/restore GtkPageSetup
Status: RESOLVED DUPLICATE of bug 344515
Product: gtk+
Classification: Platform
Component: Printing
2.9.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-06-16 19:55 UTC by Carolyn_MacLeod
Modified: 2006-06-16 23:05 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Carolyn_MacLeod 2006-06-16 19:55:22 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.
Comment 1 Matthias Clasen 2006-06-16 23:05:50 UTC
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 ***