Invoke 'menuWillOpen:' on delegate just prior to opening menu

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40375 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2017-03-10 14:23:13 +00:00
parent 767eaaabcb
commit 5fda183d88

View file

@ -568,8 +568,11 @@ static BOOL menuBarVisible = YES;
- (void) _rightMouseDisplay: (NSEvent*)theEvent
{
[[GSTheme theme] rightMouseDisplay: self
forEvent: theEvent];
// Testplant-MAL-03102017: added...
// Notify delegate if it responds to selector...
if ([self delegate] && [[self delegate] respondsToSelector:@selector(menuWillOpen:)])
[[self delegate] performSelector: @selector(menuWillOpen:) withObject: self];
[[GSTheme theme] rightMouseDisplay: self forEvent: theEvent];
}
@end