mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 19:00:59 +00:00
Add -[NSMenu popUpMenuPositioningItem:atLocation:inView:]
This commit is contained in:
parent
157695e2cb
commit
6aff0bd0f8
2 changed files with 17 additions and 3 deletions
|
@ -1445,9 +1445,9 @@ static BOOL menuBarVisible = YES;
|
|||
[menu _rightMouseDisplay: event];
|
||||
}
|
||||
|
||||
- (void) popUpMenuPositionItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
- (void) popUpMenuPositioningItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
{
|
||||
NSRect cellFrame = [view convertRect: [view bounds] toView: nil];
|
||||
NSWindow *w = [view window];
|
||||
|
@ -1465,6 +1465,15 @@ static BOOL menuBarVisible = YES;
|
|||
selectedItem: selectedItem];
|
||||
}
|
||||
|
||||
- (void) popUpMenuPositionItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
{
|
||||
[self popUpMenuPositioningItem: item
|
||||
atLocation: point
|
||||
inView: view];
|
||||
}
|
||||
|
||||
/*
|
||||
* NSObject Protocol
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue