mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:40:38 +00:00
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:
parent
351111bf67
commit
433204b18a
8 changed files with 43 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue