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 97806 - printer configuration/settings should be remembered
printer configuration/settings should be remembered
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal trivial
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
: 97668 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-06 07:19 UTC by Balamurali Viswanathan
Modified: 2010-06-03 20:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2


Attachments
Patch as stated above. (47.21 KB, patch)
2002-11-29 12:12 UTC, Rajkumar
none Details | Review

Description Balamurali Viswanathan 2002-11-06 07:19:54 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.
Comment 1 Paolo Maggi 2002-11-06 07:46:11 UTC
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"
Comment 2 Andrew Sobala 2002-11-06 17:24:42 UTC
*** Bug 97668 has been marked as a duplicate of this bug. ***
Comment 3 Rajkumar 2002-11-13 11:50:05 UTC
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.
Comment 4 Rajkumar 2002-11-29 12:11:48 UTC
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.
Comment 5 Rajkumar 2002-11-29 12:12:44 UTC
Created attachment 12631 [details] [review]
Patch as stated above.
Comment 6 Chema Celorio 2002-12-17 05:06:54 UTC
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.
Comment 7 Rajkumar 2002-12-17 08:32:22 UTC
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.
Comment 8 Chema Celorio 2002-12-30 08:07:30 UTC
Fixed in cvs. Added:

gnome_print_config_to_string &
gnome_print_config_from_string

examples/example_09 implements a dialog that saves its state
Comment 9 Andrew Sobala 2002-12-30 11:17:36 UTC
Reopening and reassigning to gedit
Comment 10 Paolo Maggi 2002-12-31 00:45:13 UTC
I'm working on it
Comment 11 Paolo Maggi 2003-01-02 17:18:24 UTC
Fixed on CVS HEAD
Comment 12 Nicholas Dreyer 2010-06-03 20:48:12 UTC
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?