mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Add point values
This commit is contained in:
parent
0e7f729f1f
commit
1e1e1043f8
1 changed files with 4 additions and 1 deletions
|
@ -1619,7 +1619,7 @@ static BOOL menuBarVisible = YES;
|
|||
}
|
||||
|
||||
+ (void) popUpContextMenu: (NSMenu *)menu
|
||||
withEvent: (NSEvent *)event
|
||||
withEvent: (NSEvent *)event
|
||||
forView: (NSView *)view
|
||||
withFont: (NSFont *)font
|
||||
{
|
||||
|
@ -1635,6 +1635,9 @@ static BOOL menuBarVisible = YES;
|
|||
NSMenuView *mr = [self menuRepresentation];
|
||||
NSUInteger selectedItem = [self indexOfItem: item];
|
||||
|
||||
cellFrame.origin.x += point.x;
|
||||
cellFrame.origin.y += point.y;
|
||||
|
||||
[[GSTheme theme] displayPopUpMenu: mr
|
||||
withCellFrame: cellFrame
|
||||
controlViewWindow: w
|
||||
|
|
Loading…
Reference in a new issue