зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 285793 (broken Add Bookmark toolbar item) by fixing the selector name on the button.
This commit is contained in:
Родитель
5302e580e2
Коммит
38c2744108
|
@ -1085,7 +1085,7 @@ enum BWCOpenDest {
|
|||
[toolbarItem setToolTip:NSLocalizedString(@"BookmarkToolTip", @"Add this page to your bookmarks")];
|
||||
[toolbarItem setImage:[NSImage imageNamed:@"add_to_bookmark.tif"]];
|
||||
[toolbarItem setTarget:self];
|
||||
[toolbarItem setAction:@selector(bookmarkPage:)];
|
||||
[toolbarItem setAction:@selector(addBookmark:)];
|
||||
}
|
||||
else if ([itemIdent isEqual:TextBiggerToolbarItemIdentifier]) {
|
||||
[toolbarItem setLabel:NSLocalizedString(@"BigText", @"Enlarge Text")];
|
||||
|
@ -1175,7 +1175,7 @@ enum BWCOpenDest {
|
|||
return (![mBrowserView isBusy] && ![self bookmarkManagerIsVisible]);
|
||||
else if (action == @selector(stop:))
|
||||
return [mBrowserView isBusy];
|
||||
else if (action == @selector(bookmarkPage:))
|
||||
else if (action == @selector(addBookmark:))
|
||||
return ![mBrowserView isEmpty];
|
||||
else if (action == @selector(biggerTextSize:))
|
||||
return ![mBrowserView isEmpty] && [[mBrowserView getBrowserView] canMakeTextBigger];
|
||||
|
|
Загрузка…
Ссылка в новой задаче