Closed Bug 22357 Opened 25 years ago Closed 25 years ago

Menu should use implicit separators.

Categories

(Core :: XUL, enhancement, P3)

enhancement

Tracking

()

VERIFIED WONTFIX

People

(Reporter: CodeMachine, Assigned: mikepinkerton)

Details

I've seen instances where you get separators with nothing below you. I think Moz should automatically handle this situation properly, and also the one where there are two separators together. Basically this would involve changing: <menu value="File"/> <menupopup> <menuitem value="New..."/> <menuitem value="Close"/> <menuseparator/> <menuitem value="Save"/> <menuitem value="Save As..."/> <menuseparator/> <menuitem value="Exit"/> </menupopup> </menu> (graciously lifted from the XUL docs) to: <menu value="File"/> <menupopup> <menugroup> <menuitem value="New..."/> <menuitem value="Close"/> </menugroup> <menugroup> <menuitem value="Save"/> <menuitem value="Save As..."/> </menugroup> <menugroup> <menuitem value="Exit"/> </menugroup> </menupopup> </menu> It's a bit longer, and maybe you might know how to make it shorter, but anyway, the point is that separators are implicit rather than explicit, that is, between the groups. If one menu group happens to be empty, it generates no separator, and there is no scope for multiple separators. I've seen id attributes on menuseparators in navigator.xul, so I'm not sure whether this provides a feature that my proposal couldn't achieve.
QA Contact: paulmac → sairuh
Sairuh, your chance to learn some XUL :-)
Assignee: trudelle → saari
reassigning to saari for consideration, cc hyatt.
Assignee: saari → hyatt
Target Milestone: M20
Taking this.
The other option of course is to actually trash unneeded explicit separators, which is probably easier to implement but I'm of the opinion a grouping scheme is more logical.
Status: NEW → ASSIGNED
Assignee: hyatt → pinkerton
Status: ASSIGNED → NEW
Taking menu/popup bugs.
These are some good ideas, but we need explicit separators for style and we don't like the idea of altering the content model implicitly.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
verifying.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: bugzilla → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.