GNOME Bugzilla – Bug 97806
printer configuration/settings should be remembered
Last modified: 2010-06-03 20:48:12 UTC
Whenever I want to print a document I need to go and change the settings manually in the print dialog. For example in the print dialog if I choose the "Paper" tab and change the values for 1.Paper Size 2.Page orientation 3.Layout, after quiting the application and starting it again all the new values are lost, I need to set them again. Is this is the expected behaviour or is it a valid bug. Thanks.
Yep, it is the expected behaviour. But probably it is not the right one, i.e. we could improve it. Changing summary and setting severity to "enh"
*** Bug 97668 has been marked as a duplicate of this bug. ***
The new feature has to be set up in gnome-print of libgnomeprintui, am working out a patch for it on gnome-2-0 branch.
I have worked out a patch in libgnomeprintui which enables gnome-print launched from gedit to store its configuration settings. I have also incorporated notification feature, so that gnome-print will respond to the changes in gconf values instantly. Am attaching the patch and it's been worked against gnome-2-0 branch.
Created attachment 12631 [details] [review] Patch as stated above.
The patch is wrong, the options should not be modified from the view but from the model (MVC split), i.e. it should all be done in libgnomeprint, no need to touch libgnomeprintui. Also, I'm not sure if gconf is the best thing for this ... might be.
In which case the above patch is a quick fix to the current problem. Like you mentioned the other day we could use XML GnomePrintConfig object for storing configuration options of a document and embed them in the doc.
Fixed in cvs. Added: gnome_print_config_to_string & gnome_print_config_from_string examples/example_09 implements a dialog that saves its state
Reopening and reassigning to gedit
I'm working on it
Fixed on CVS HEAD
Version 2.22.3 (from gnome desktop package in Linux Debian 5.03 "Lenny") exhibits the same symptom described in original report: PaperSize setting is reset to "US Letter" after restarting gedit. Can anyone say which version of gedit the fix mentioned above made it into? Someone using version 2.30.2 says they do not see this problem (see http://forums.debian.net/viewtopic.php?f=6&t=52498#p302231), but has it really not yet gotten into 2.22.3?