Closed
Bug 116328
Opened 23 years ago
Closed 23 years ago
implement collation-based sorting in nsXULOutlinerBuilder
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla0.9.9
People
(Reporter: waterson, Assigned: waterson)
Details
Attachments
(1 file, 1 obsolete file)
5.16 KB,
patch
|
janv
:
review+
hyatt
:
superreview+
|
Details | Diff | Splinter Review |
The outliner builder doesn't do collation-based sorting. It should.
Assignee | ||
Updated•23 years ago
|
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Comment 1•23 years ago
|
||
I think the collation interface is used for the outliner builder.
http://lxr.mozilla.org/seamonkey/source/content/xul/templates/src/nsXULOutlinerBuilder.cpp#272
But the key is treated as PRUnichar*,
http://lxr.mozilla.org/seamonkey/source/content/xul/templates/src/nsXULOutlinerBuilder.cpp#1842
The key is a binary instead of a null terminated unicode string. Should the
change involve the clients side change (e.g. mail folder sort) or can the
outliner builder change to support binary key first then the clients can migrate.
Keywords: nsbeta1
Assignee | ||
Comment 2•23 years ago
|
||
Let's get the rdfliner to work, then we can convert clients over. (That way
nothing breaks in the interim.)
Assignee | ||
Comment 3•23 years ago
|
||
This patch makes nsXULOutlinerBuilder grok nsIRDFBlob, and fixes
nsIRDFBlob::GetValue to return a |_const_ PRUint8 **|.
Comment 4•23 years ago
|
||
With the patch, what changes do the clients need (e.g. message folder sort)?
Would that be just create a node as nsIRDFBlob?
Comment 5•23 years ago
|
||
yes, we will have to createNodes as nsIRDFBlob, plus there will be
some changes to treat key as PRUint8* instead of PRUnichar* in nsMsgFolder.cpp
Assignee | ||
Comment 6•23 years ago
|
||
For some reason, I think my version of nsIRDFService.idl was picking up
|octet_ptr| from somewhere else. This patch creates a new type,
|const_octet_ptr|, and uses it.
Attachment #66013 -
Attachment is obsolete: true
Comment 7•23 years ago
|
||
Just when I recompiled my tree :(
First patch compiled fine though.
Comment 8•23 years ago
|
||
Comment on attachment 66018 [details] [diff] [review]
patch that compiles!
compiles fine, works fine, looks good.
r=varga
Attachment #66018 -
Flags: review+
Comment 9•23 years ago
|
||
Comment on attachment 66018 [details] [diff] [review]
patch that compiles!
sr=hyatt
Attachment #66018 -
Flags: superreview+
Assignee | ||
Comment 10•23 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 11•23 years ago
|
||
waterson, we need to do similar thing for XULSortService or is that
going to be taken care of another bug ?
Assignee | ||
Comment 12•23 years ago
|
||
tingley has that covered in bug 116329.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•