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:
FredKiefer 2001-08-21 23:22:51 +00:00
parent 8e9fd7ee70
commit ac9d614d30

View file

@ -316,19 +316,9 @@
- (void) rightMouseDown: (NSEvent*)theEvent - (void) rightMouseDown: (NSEvent*)theEvent
{ {
if (_next_responder != nil) if (_next_responder != nil)
{ return [_next_responder rightMouseDown: theEvent];
return [_next_responder rightMouseDown: theEvent];
}
else else
{ return [self noResponderFor: @selector(rightMouseDown:)];
// FIXME: This should be moved into NSApplication
NSMenu *menu = [NSApp mainMenu];
if (menu != nil)
[menu _rightMouseDisplay: theEvent];
else
return [self noResponderFor: @selector(rightMouseDown:)];
}
} }
- (void) rightMouseDragged: (NSEvent*)theEvent - (void) rightMouseDragged: (NSEvent*)theEvent
@ -347,6 +337,12 @@
return [self noResponderFor: @selector(rightMouseUp:)]; return [self noResponderFor: @selector(rightMouseUp:)];
} }
- (void) scrollWheel: (NSEvent *)theEvent
{
// FIXME
NSLog(@"Sorry, currently no support for scroll wheel.");
}
/* /*
* Services menu support * Services menu support
*/ */