When programmatically simulating a mouse click, also change state of the

cell


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10189 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-06-16 11:06:16 +00:00
parent 874fbb4f72
commit c455b9bc29

View file

@ -1112,13 +1112,16 @@ static NSColor *shadowCol;
NSView *cv = [self controlView];
if(_cell.is_disabled == YES)
return;
{
return;
}
if (cv)
if (cv != nil)
{
NSRect cvBounds = [cv bounds];
NSWindow *cvWin = [cv window];
[self setNextState];
[self highlight: YES withFrame: cvBounds inView: cv];
[cvWin flushWindow];
@ -1146,6 +1149,8 @@ static NSColor *shadowCol;
{
if (action)
{
[self setNextState];
NS_DURING
{
[[NSApplication sharedApplication] sendAction: action