зеркало из https://github.com/mozilla/gecko-dev.git
Camino only - Bug 314628: check Use as Dock Menu on the current dock menu. r=cl sr=pink
This commit is contained in:
Родитель
e67a58c911
Коммит
947d6ad28f
|
@ -808,6 +808,8 @@ static BookmarkManager* gBookmarkManager = nil;
|
|||
menuTitle = NSLocalizedString(@"Use as Dock Menu", @"");
|
||||
menuItem = [[[NSMenuItem alloc] initWithTitle:menuTitle action:@selector(makeDockMenu:) keyEquivalent:@""] autorelease];
|
||||
[menuItem setTarget:[items objectAtIndex:0]];
|
||||
if ([(BookmarkFolder*)[items objectAtIndex:0] isDockMenu])
|
||||
[menuItem setState:NSOnState];
|
||||
[contextMenu addItem:menuItem];
|
||||
}
|
||||
|
||||
|
|
|
@ -1433,6 +1433,8 @@ static const unsigned int TableViewSolidVerticalGridLineMask = 1;
|
|||
action:@selector(setAsDockMenuFolder:)
|
||||
keyEquivalent:@""];
|
||||
[useAsDockItem setTarget:self];
|
||||
if ([aFolder isDockMenu])
|
||||
[useAsDockItem setState:NSOnState];
|
||||
[contextMenu addItem:useAsDockItem];
|
||||
[useAsDockItem release];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче