Closed Bug 346209 Opened 18 years ago Closed 16 years ago

Font changes do not take effect until preferences are closed

Categories

(Camino Graveyard :: Preferences, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: trevor, Assigned: bugzilla-graveyard)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2

Changes to the browser's font in Perferences/Appearance/Fonts do not take effect until the preferences window is closed or another preference pane is selected.

Reproducible: Always

Steps to Reproduce:
1. Launch Camino.
2. Open Preferences/Appearance/Fonts.
3. Use the Change button to change the font.
Actual Results:  
The browser window does not use the newly reflected font until the preferences window is closed.

Expected Results:  
The browser window should update itself to match the currently selected font in the font dialog, even though the preferences window is still open.
Bug 191032 maybe? That bug is for something else, but this issue is discussed in the comments.
Yeah, I mentioned it there, but I don't think anyone ever filed it.

cl
Confirming and putting on the 1.1 list for now, but if we can't take it in the current prefPane work, then off it goes ;)

Julian noted on irc tonight that Reset auto-applies (or did when he wrote the patch, so there should be some code to auto-apply we can perhaps copy (see also bug 158180 comment 15).

Also note, though, that the reset code is buggy; it Resets all fonts instead of only the current langgroup's fonts (bug 281770).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: DUPEME
Target Milestone: --- → Camino1.1
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → stridey
Status: NEW → ASSIGNED
Attachment #244504 - Flags: review?(bugzilla)
Attachment #244504 - Flags: review?(bugzilla) → review?(joshmoz)
Comment on attachment 244504 [details] [diff] [review]
Patch

codewise r=me
Attachment #244504 - Flags: review?(joshmoz) → review+
Attachment #244504 - Flags: superreview?(stuart.morgan)
Comment on attachment 244504 [details] [diff] [review]
Patch

The advanced prefs don't apply on change, or even when the advanced prefs sheet is dismissed, making them feel broken if the rest of the pane causes live updates.  We need them both to live update if either is going to.
Attachment #244504 - Flags: superreview?(stuart.morgan) → superreview-
Target Milestone: Camino1.1 → Camino2.0
Target Milestone: Camino2.0 → ---
I assume Ian's not working on this at the moment, and won't mind if I steal it from him...
Assignee: froodian → cl-bugs-new
Status: ASSIGNED → NEW
Hardware: Macintosh → All
Attached patch fix v1.1 (obsolete) — Splinter Review
This addresses the Advanced sheet.

The changes don't auto-apply while the sheet is open, but I'm not sure how to do that, or if we really care. They do auto-apply as soon as the "done" button is clicked, which I thought to be the more important part of comment 7, and when bug 422576 gets done, we won't care anyway.
Attachment #244504 - Attachment is obsolete: true
Attachment #323963 - Flags: review?(Jeff.Dlouhy)
Note to self: there are a ton of whitespace problems in that file, so when a patch here gets sr, generate a diff without -w for checkin.
(In reply to comment #10)
> when a patch here gets sr, generate a diff without -w for checkin.

Once again, no. If you want to fix whitespace, do it in a *different checkin*. Mixing tons of whitespace changes with actual code changes makes blame very unpleasant.
Blocks: 437552
Comment on attachment 323963 [details] [diff] [review]
fix v1.1

Advanced sheet is now working as expected.

r=jeff
Attachment #323963 - Flags: review?(Jeff.Dlouhy) → review+
Attachment #323963 - Flags: superreview?(stuart.morgan)
Comment on attachment 323963 [details] [diff] [review]
fix v1.1

This saves every type in every region any time anything changes. The only thing that needs saving for the two buttons is the specific region/type that was modified, and for the sheet only the current region.
Attachment #323963 - Flags: superreview?(stuart.morgan) → superreview-
Attached patch fix v1.2 (obsolete) — Splinter Review
Addresses sr comments, but due to changes, should be re-reviewed first.
Attachment #323963 - Attachment is obsolete: true
Attachment #324727 - Flags: review?(Jeff.Dlouhy)
Status: NEW → ASSIGNED
Comment on attachment 324727 [details] [diff] [review]
fix v1.2

Stuart said he was OK with just giving this another sr, so that way Jeff doesn't have to worry about it.
Attachment #324727 - Flags: review?(Jeff.Dlouhy) → superreview?(stuart.morgan+bugzilla)
Attachment #324727 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Comment on attachment 324727 [details] [diff] [review]
fix v1.2

>+  // apply the changes for the current region
>+  [self saveFontNamePrefsForRegion:regionDict forFontType:@"serif"];
>+  [self saveFontNamePrefsForRegion:regionDict forFontType:@"sans-serif"];
>+  [self saveFontNamePrefsForRegion:regionDict forFontType:@"monospace"];
>+  [self saveDefaultFontTypePrefForRegion:regionDict];
>+  [self saveFontSizePrefsForRegion:regionDict];

Rather than cloning this logic from saveFontPrefs, make a new private saveAllFontPrefsForRegion: method with this body, and make both saveFontPrefs and your code call that.

sr=smorgan with that change.
Attached patch fix v1.21Splinter Review
sr comments addressed, ready for checkin.
Attachment #324727 - Attachment is obsolete: true
Hooray!  This is in on cvs trunk, and we finally behave like a real Mac app here!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Lovely :-)
One less click just to turn minimum font-size on/off.

v. with 2.0a1pre (1.9.0.3pre 2008090900)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: