313083 Right-click in empty tab bar space has no contextual menu. Add a contextual menu. Patch by Chris Lawson <bugzilla@chrislawson.net>. r=smorgan sr=me a=me

This commit is contained in:
mark%moxienet.com 2006-05-26 18:56:14 +00:00
Родитель dcda9203aa
Коммит 5a03f44828
2 изменённых файлов: 1 добавлений и 2 удалений

Двоичные данные
camino/resources/localized/English.lproj/BrowserWindow.nib/keyedobjects.nib сгенерированный

Двоичный файл не отображается.

Просмотреть файл

@ -167,8 +167,7 @@ static const int kOverflowButtonMargin = 1;
{
NSPoint clickPoint = [self convertPoint:[theEvent locationInWindow] fromView:nil];
TabButtonCell *clickedTabButton = [self buttonAtPoint:clickPoint];
// XXX should there be a menu if someone clicks in the tab bar where there is no tab?
return (clickedTabButton) ? [clickedTabButton menu] : nil;
return (clickedTabButton) ? [clickedTabButton menu] : [self menu];
}
-(void)mouseDown:(NSEvent*)theEvent