mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 03:01:00 +00:00
* Headers/AppKit/NSMenu.h,
* Source/externs.m: Add NSMenuDidBeginTrackingNotification. * Source/NSMenuView.m (-trackWithEvent:): send tracking notifications. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39008 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fda2efe727
commit
b4a18b98e0
4 changed files with 14 additions and 0 deletions
|
@ -1932,7 +1932,11 @@ static float menuBarHeight = 0.0;
|
|||
{
|
||||
BOOL result = NO;
|
||||
NSMenuView *mainWindowMenuView = nil;
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
[nc postNotificationName: NSMenuDidBeginTrackingNotification
|
||||
object: [self menu]];
|
||||
|
||||
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) ==
|
||||
NSWindows95InterfaceStyle &&
|
||||
![[self menu] isTransient] &&
|
||||
|
@ -1952,6 +1956,8 @@ static float menuBarHeight = 0.0;
|
|||
[localException raise];
|
||||
NS_ENDHANDLER
|
||||
[_window _releaseMouse: self];
|
||||
[nc postNotificationName: NSMenuDidEndTrackingNotification
|
||||
object: [self menu]];
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue