mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
Added dummy implementation of [scrollWheel:].
Moved menu display code in [rightMouseDown:] to NSApplication. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0632e24a64
commit
eae31362e1
1 changed files with 8 additions and 12 deletions
|
@ -316,19 +316,9 @@
|
|||
- (void) rightMouseDown: (NSEvent*)theEvent
|
||||
{
|
||||
if (_next_responder != nil)
|
||||
{
|
||||
return [_next_responder rightMouseDown: theEvent];
|
||||
}
|
||||
return [_next_responder rightMouseDown: theEvent];
|
||||
else
|
||||
{
|
||||
// FIXME: This should be moved into NSApplication
|
||||
NSMenu *menu = [NSApp mainMenu];
|
||||
|
||||
if (menu != nil)
|
||||
[menu _rightMouseDisplay: theEvent];
|
||||
else
|
||||
return [self noResponderFor: @selector(rightMouseDown:)];
|
||||
}
|
||||
return [self noResponderFor: @selector(rightMouseDown:)];
|
||||
}
|
||||
|
||||
- (void) rightMouseDragged: (NSEvent*)theEvent
|
||||
|
@ -347,6 +337,12 @@
|
|||
return [self noResponderFor: @selector(rightMouseUp:)];
|
||||
}
|
||||
|
||||
- (void) scrollWheel: (NSEvent *)theEvent
|
||||
{
|
||||
// FIXME
|
||||
NSLog(@"Sorry, currently no support for scroll wheel.");
|
||||
}
|
||||
|
||||
/*
|
||||
* Services menu support
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue