mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:40:47 +00:00
Implemented [popUpContextMenu:withEvent:forView:] using
[_rightMouseDisplay:]. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16209 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8756f2c38
commit
e41771c163
1 changed files with 9 additions and 8 deletions
|
@ -123,6 +123,7 @@ static NSNotificationCenter *nc;
|
||||||
- (NSString *) _locationKey;
|
- (NSString *) _locationKey;
|
||||||
- (NSMenuPanel *) _createWindow;
|
- (NSMenuPanel *) _createWindow;
|
||||||
- (void) _updateUserDefaults: (id) notification;
|
- (void) _updateUserDefaults: (id) notification;
|
||||||
|
- (void) _rightMouseDisplay: (NSEvent*)theEvent;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -242,6 +243,13 @@ static NSNotificationCenter *nc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) _rightMouseDisplay: (NSEvent*)theEvent
|
||||||
|
{
|
||||||
|
[self displayTransient];
|
||||||
|
[_view mouseDown: theEvent];
|
||||||
|
[self closeTransient];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@ -1025,7 +1033,7 @@ static NSNotificationCenter *nc;
|
||||||
withEvent: (NSEvent*)event
|
withEvent: (NSEvent*)event
|
||||||
forView: (NSView*)view
|
forView: (NSView*)view
|
||||||
{
|
{
|
||||||
// TODO
|
[menu _rightMouseDisplay: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1193,13 +1201,6 @@ static NSNotificationCenter *nc;
|
||||||
[self _updateUserDefaults: nil];
|
[self _updateUserDefaults: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _rightMouseDisplay: (NSEvent*)theEvent
|
|
||||||
{
|
|
||||||
[self displayTransient];
|
|
||||||
[_view mouseDown: theEvent];
|
|
||||||
[self closeTransient];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) display
|
- (void) display
|
||||||
{
|
{
|
||||||
if (_transient)
|
if (_transient)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue