Closed Bug 223408 Opened 22 years ago Closed 21 years ago

View - Layout Menu needs to use radio buttons instead of check marks

Categories

(Thunderbird :: Mail Window Front End, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Thunderbird0.9

People

(Reporter: kennedyg, Assigned: mattwillis)

References

Details

(Keywords: fixed-aviary1.0)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6a) Gecko/20031021 Camino/0.7+ Build Identifier: Mozilla Thunderbird 0.3 (20031013) On the mac if you use the View-Layout menu to change to a different layout it check marks the one selected. Then if you go back and change to a different layout it will check mark that one as well. You can actually end up with all 3 check marked at the same time. A restart of thunderbird corrects the problem but if you change layouts it will do it again. Reproducible: Always Steps to Reproduce: 1.Select View-Layout. Note that by default Classic is check marked. 2.Select a different layout. 3.Now Select View-Layout again. Now you will have check marks by both Classic and the other view you selected. Actual Results: Ended up with everything check marked. Expected Results: This menu should only allow one item at a time to be check marked.
They are radios already and I doubt Scott changed them to checkboxes on the 0.3 branch.
(In reply to comment #1) > They are radios already and I doubt Scott changed them to checkboxes on the 0.3 > branch. version 0.7.1 (20040626) has this same problem. the check marks don't act like radio buttons, they just all turn on and stay on.
I encountered this same behavior with version 0.7.3 (20040803) on OS X. This also occurs with the "View | Headers" menu. Most of the others (say, "View | Message Body As") seem to be unaffected. I'm not too surprised this is OS X-only. OS X doesn't have a class to manage radio menu items for you. In Cocoa, there's just the NSMenuItem class. When you toggle one item on, you have to invoke [NSMenuItem setState:NSOffState] on the others yourself. So it'd be easy to forget to do this on OS X, yet have it be correct on other platforms. OS X also doesn't visually distinguish between checkbox items and radio items in menus. Not sure why. You can set images for on state and off states manually, but nothing seems to do that. For example, the "Window" menu in every application displays the current window (clearly a one-at-a-time selection) with a checkbox in the on state of each item, and no image in the off state.
This behavior continues on Mozilla Thunderbird 0.8 (20040913)
Disclaimer: This is the first patch I've submitted. This patch adds the name "viewlayoutgroup" to each of the three layout radio choices, grouping them together in a mutually exclusive group.
Flags: blocking-aviary1.0mac?
Flags: blocking-aviary1.0mac?
Attachment #159015 - Flags: review?(mscott)
Same patch as above, built for AVIARY
Attachment #159232 - Flags: review?(mscott)
Attachment #159015 - Flags: approval-aviary?
Attachment #159232 - Flags: approval-aviary?
Attachment #159015 - Flags: approval-aviary?
Comment on attachment 159232 [details] [diff] [review] AVIARY version of same patch please don't request approval until you've gotten sufficient reviews. thanks.
Attachment #159232 - Flags: approval-aviary?
Attachment #159015 - Flags: review?(mscott) → review?(bienvenu)
Attachment #159232 - Flags: review?(mscott) → review?(bienvenu)
Taking this bug
Assignee: mscott → mattwillis
Attachment #159015 - Flags: review?(bienvenu) → review+
Attachment #159232 - Flags: review?(bienvenu) → review+
fixed on the branch and the trunk. Thanks for the patch!
Status: NEW → RESOLVED
Closed: 21 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird0.9
verified on latest 20041124 builds
Status: RESOLVED → VERIFIED
*** Bug 260683 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: