mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
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:
parent
767eaaabcb
commit
5fda183d88
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue