mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:30:38 +00:00
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:
parent
874fbb4f72
commit
c455b9bc29
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue