Closed
Bug 223209
Opened 21 years ago
Closed 21 years ago
[patch] New bookmark manager , bookmark view clean-up
Categories
(Camino Graveyard :: Bookmarks, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Usul, Assigned: mikepinkerton)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
This
a)makes sure the bookmarks are visible in the event Camino was launched via an
apple-event
b)pops open the search result window when you do a search, in the event it was
hidden
c)preserves the order of bookmarks dropped in a mass drag & drop (current
behavior reverses their order in a folder)
d)fixes some button states appropriately depending on what folder is selected
e)gets rid of a useless method & cleans up a differnt method.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
Comment on attachment 133833 [details] [diff] [review]
david's patch
adding review? since I assume that's what you're looking for here.
- (float)splitView:(NSSplitView *)sender
constrainMinCoordinate:(float)proposedCoord ofSubviewAt:(int)offset
{
- const int kMinimumContainerSplitWidth = 150;
- float retVal = proposedCoord;
if ( sender == mContainersSplit )
- retVal = kMinimumContainerSplitWidth;
- return retVal;
+ return 150; //minimum size of collections pane
+ else
+ return proposedCoord;
Dave, I don't like that you removed the definition for the value there. I think
it would be better to keep avoid hard-coding a number like that 150 into the
code. The way it was before was maybe not ideal either, but what you did is
worse I think.
+ mRootBookmarks = [[[BookmarkManager sharedBookmarkManager] rootBookmarks]
retain];
+ if (!mRootBookmarks)
+ return;
Just return? Shouldn't you log something, complain, beep(), etc?
I've got the patch installed and it works. If you fix those two issues in the
code, I'll review+
Attachment #133833 -
Flags: review?(sbwoodside)
Comment 3•21 years ago
|
||
Added CC for david. David, please have a look at my comment #2
http://bugzilla.mozilla.org/show_bug.cgi?id=223209#c2
Comment 4•21 years ago
|
||
updated. didn't need the check for mBookmarkManager, so I pitched it. And I
added back in the const int rather than just run with the 150.
Attachment #133833 -
Attachment is obsolete: true
Reporter | ||
Comment 5•21 years ago
|
||
Comment on attachment 134196 [details] [diff] [review]
updated
>+ if (searchFrame.size.height < 80) {
>+ searchFrame.size.height = 80;
>+ bookmarkFrame.size.height -= 80;
Could this 80 be #defined somwhere ?
Comment 6•21 years ago
|
||
I #defined the 80 & 150 in the header.
Updated•21 years ago
|
Attachment #134196 -
Attachment is obsolete: true
Assignee | ||
Comment 7•21 years ago
|
||
#define bad. const long or enum good.
Assignee | ||
Comment 8•21 years ago
|
||
landed w/out #defines.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Attachment #133833 -
Flags: review?(sbwoodside)
You need to log in
before you can comment on or make changes to this bug.
Description
•