mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Revert original right display code - fixed in theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36869 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3b710d1c37
commit
417d2f9a54
1 changed files with 8 additions and 12 deletions
|
@ -1546,22 +1546,18 @@ static BOOL menuBarVisible = YES;
|
|||
withEvent: (NSEvent*)event
|
||||
forView: (NSView*)view
|
||||
{
|
||||
[self popUpContextMenu:menu withEvent:event forView:view withFont:nil];
|
||||
[self popUpContextMenu: menu
|
||||
withEvent: event
|
||||
forView: view
|
||||
withFont: nil];
|
||||
}
|
||||
|
||||
+ (void) popUpContextMenu: (NSMenu *)menu
|
||||
withEvent: (NSEvent *)event
|
||||
forView: (NSView *)view
|
||||
+ (void) popUpContextMenu: (NSMenu *)menu
|
||||
withEvent: (NSEvent *)event
|
||||
forView: (NSView *)view
|
||||
withFont: (NSFont *)font
|
||||
{
|
||||
NSWindow *window = [event window];
|
||||
NSPoint point = [window convertBaseToScreen: [event locationInWindow]];
|
||||
NSRect cellFrame = NSMakeRect(point.x, point.y, 0, 0);
|
||||
[[GSTheme theme] displayPopUpMenu: [menu menuRepresentation]
|
||||
withCellFrame: cellFrame
|
||||
controlViewWindow: window
|
||||
preferredEdge: NSMinXEdge
|
||||
selectedItem: 0];
|
||||
[menu _rightMouseDisplay: event];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue