Merge pull request #122 from nongio/wayland

expose NSWindow menu attribute, required for wayland backend submenu
This commit is contained in:
Fred Kiefer 2021-11-08 07:33:25 +01:00 committed by GitHub
commit 6ecfa261f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,6 +121,7 @@
NSMenu *_the_menu;
}
- (void) _setmenu: (NSMenu *)menu;
- (NSMenu *) menu;
@end
@interface NSMenuView (GNUstepPrivate)
@ -155,6 +156,10 @@ static BOOL menuBarVisible = YES;
{
_the_menu = menu;
}
- (NSMenu *) menu
{
return _the_menu;
}
- (BOOL) canBecomeKeyWindow
{