mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:50:37 +00:00
2004-09-12 Matt Rice <ratmice@yahoo.com>
* Headers/AppKit/NSCell.h (-_sendsActionOn:): New method. * Source/NSCell.m (-_sendsActionOn:): Implement it. * Source/NSTextFieldCell.m (-initTextCell:): Change _action_mask to a key press. * Source/NSTableView.m (-mouseDown:): Use _sendsActionOn: to only modify the object value and send the event to the cell if the cell works on mouse events. (Fixes #9609). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f67994c98
commit
f36cb2daff
5 changed files with 77 additions and 33 deletions
|
@ -35,6 +35,7 @@
|
|||
#include "AppKit/NSGraphics.h"
|
||||
#include "AppKit/NSTextFieldCell.h"
|
||||
#include "AppKit/NSText.h"
|
||||
#include "AppKit/NSEvent.h"
|
||||
|
||||
static NSColor *bgCol;
|
||||
static NSColor *txtCol;
|
||||
|
@ -94,6 +95,7 @@ static NSColor *txtCol;
|
|||
ASSIGN(_background_color, bgCol);
|
||||
_textfieldcell_draws_background = NO;
|
||||
_textfieldcell_is_opaque = NO;
|
||||
_action_mask = NSKeyUpMask | NSKeyDownMask;
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue