Closed Bug 96339 Opened 23 years ago Closed 23 years ago

Display Resolution redundantly lists selection if selection is 72dpi or 96dpi

Categories

(SeaMonkey :: Preferences, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: bugzilla, Assigned: gerv)

References

Details

(Keywords: polish)

Attachments

(3 files)

seen using either modern or classic theme. will attach shots soon. 1. go to the Fonts pref panel. 2. select either 72dpi or 96dpi from the Display Resolution droplist. 3. click OK to dismiss prefs dialog. 4. go to the Fonts pref panel again and expand the Display Resolution droplist. results: there's an additional entry for 72dpi [or, 96dpi] with a checkmark. notes: a. if i select either "System setting" or a user-defined resolution from the Calibrate Resolution dialog [via "Other"], i don't see this "redunancy" --instead the resolution appears as highlighted in the droplists, with no checkmark. b. if i don't save/dismiss prefs [ie, skip step (3)], the droplist doesn't show the "redundancy", the selected item is highlighted without a checkmark.
whatever the fix, we should use one selection format, not both highlighting and checkmarking.
Keywords: polish
The highlighting thing is done by the widget, and has nothing to do with me. I thought I had added code to make this not happen, but maybe it broke. I'll look at it again at some point. Gerv
Target Milestone: --- → mozilla0.9.5
Patch is in bug 89842. Gerv
Depends on: 89842
Fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
fix implements checkmarks. when a numeric value [anything other than "system setting" on unix] is selected, the selection appears [albeit repeated] beneath the separator in the droplist with a checkmark. linux, 2001.09.04.08-comm winnt, 2001.09.04.00-comm mac 9.1, 2001.09.04.11-comm if this is not expected behavior, do reopen.
Status: RESOLVED → VERIFIED
There should be no repeat. This still isn't quite fixed. :-( Gerv
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Attached patch Patch v.1Splinter Review
This should fix it. Hwaara: any chance of a review? You'll note the added code is basically stolen from SetFields a bit above, and the reason for the stealing is explained in the comment. Gerv
Comment on attachment 49702 [details] [diff] [review] Patch v.1 >+ if( prefvalue != "!/!ERROR_UNDEFINED_PREF!/!" ) What string is that? Is that some kind of internal error? If at all possible, could you have a global (like a #define in C++) variable that you compared with rather than hardcoding it? >+ resolution = prefvalue; >+ else >+ resolution = 96; // If it all goes horribly wrong, fall back on 96. Is 96 the default resolution? Please make it fall back on a non-hardcoded global default.
Yes, that's an internal error. > Is 96 the default resolution? Please make it fall back on a non-hardcoded > global default. The default resolution is a pref, and varies from platform to platform. If we can't get the prefs service, we are stuffed anyway. Neither of these two queries relate to the changes made by this patch, BTW. Gerv
Fine. r=hwaara
Blake: you super-reviewed the last patch in this area; could you do so again? This is pretty small - six lines of code. Gerv
sr=blake
This was checked in on the 30th of September. Gerv
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
no longer seeing the redundancy. thx for fixing this. vrfy fixed using 2001.11.08.0x-comm bits on linux rh6.2, winnt and mac os 10.1.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: