Improve code for showing VO tab menu

We now use standard API for showing the menu and position it relative to the VO-selected tab.
This commit is contained in:
Allan Odgaard
2013-01-18 15:24:14 +01:00
parent 701e26997e
commit f2ed528bb1

View File

@@ -465,8 +465,8 @@ static id SafeObjectAtIndex (NSArray* array, NSUInteger index)
else if([action isEqualToString:NSAccessibilityShowMenuAction])
{
self.tabBarView.tag = self.index;
NSRect rect = [self screenRect];
[self.tabBarView showMenu:[self.tabBarView.delegate menuForTabBarView:self.tabBarView] inRect:rect withSelectedIndex:-1 font:[NSFont menuFontOfSize:[NSFont systemFontSize]] popup:NO];
if([self.tabBarView.delegate respondsToSelector:@selector(menuForTabBarView:)])
[[self.tabBarView.delegate menuForTabBarView:self.tabBarView] popUpMenuPositioningItem:nil atLocation:self.rect.origin inView:self.tabBarView];
}
else
{