Closed
Bug 381685
Opened 18 years ago
Closed 18 years ago
Clean up status and separator interface on Bookmark
Categories
(Camino Graveyard :: Bookmarks, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)
Details
(Keywords: fixed1.8.1.5)
Attachments
(1 file)
12.78 KB,
patch
|
jaas
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
The Bookmark class has a bunch of messiness left over from the old automatic bookmark checking and the shoe-horning-in of separator as a status field. This is an incremental patch to substantially improve things. There is a lot left to do to improve things here, and I'll follow up with more later on, but I want to keep the change easy to review.
- creates a new utility method for clients to use to create separators
- removes status and setStatus:, since they are no longer meaningful, as well as the status parameter of a bookmark-adding method (the value it always used is already the default)
- makes setIsSeparator: private, since no-one should ever change a bookmark after it's created (removing this entirely requires more surgery that I'll do later)
- makes the safe-accessors that are only needed internally private (again, savedStatus will be removed later)
Attachment #265766 -
Flags: review?
Assignee | ||
Comment 1•18 years ago
|
||
I forgot:
- pushes the remnant of status into the bookmark reading/writing (eliminating is later), so the internal class state no longer has the status concept.
(This may need bug 380586's patch applied to compile/run correctly; I didn't want to mess with code we are removing)
Attachment #265766 -
Flags: review? → review+
Assignee | ||
Updated•18 years ago
|
Attachment #265766 -
Flags: superreview?(mikepinkerton)
Comment 2•18 years ago
|
||
Comment on attachment 265766 [details] [diff] [review]
clean up
+ [self setTitle:NSLocalizedString(@"<Menu Spacer>", nil)];
why is this localized? Is it ever shown to the user?
sr=pink
Attachment #265766 -
Flags: superreview?(mikepinkerton) → superreview+
Assignee | ||
Comment 3•18 years ago
|
||
Yes, unfortunately. It's one of those things that we really need to fix about the way the bookmark inspector panel works.
Assignee | ||
Comment 4•18 years ago
|
||
Checked in on trunk and MOZILLA_1_8_BRANCH
You need to log in
before you can comment on or make changes to this bug.
Description
•