Bugs removed from NSButton and NSDPSContext.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2374 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Scott Christley 1997-08-06 20:29:07 +00:00
parent 351111bf67
commit 433204b18a
8 changed files with 43 additions and 16 deletions

View file

@ -289,6 +289,7 @@ id gnustep_gui_nsbutton_class = nil;
NSEvent *e;
unsigned int event_mask = NSLeftMouseDownMask | NSLeftMouseUpMask |
NSMouseMovedMask | NSLeftMouseDraggedMask | NSRightMouseDraggedMask;
// int oldActionMask = [cell sendActionOn:0];
NSDebugLog(@"NSButton mouseDown\n");
@ -335,9 +336,12 @@ id gnustep_gui_nsbutton_class = nil;
}
[self unlockFocus];
/* Restore the old action mask */
// [cell sendActionOn:oldActionMask];
// Have the target perform the action
if (mouseUp)
[self sendAction:[self action] to:[self target]];
// if (mouseUp)
// [self sendAction:[self action] to:[self target]];
}
- (void)performClick:(id)sender