mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* Source/NSButtonCell.m (-setButtonType:): Warn about unsupported
button types. * Source/NSCell.m (-performClickWithFrame:inView:): Highlight the cell only if drawing is possible.
This commit is contained in:
parent
e853f4fdbf
commit
c72d2df3ff
3 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2017-08-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSButtonCell.m (-setButtonType:): Warn about unsupported
|
||||
button types.
|
||||
* Source/NSCell.m (-performClickWithFrame:inView:): Highlight the
|
||||
cell only if drawing is possible.
|
||||
|
||||
2017-08-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSCell.m (-trackMouse:...untilMouseUp:): Rewrote mouse
|
||||
|
|
|
@ -819,6 +819,9 @@ typedef struct _GSButtonCellFlags
|
|||
[self setBezeled: NO];
|
||||
[self setImageDimsWhenDisabled: NO];
|
||||
break;
|
||||
default:
|
||||
NSLog(@"Using unsupported button type %d", buttonType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1479,7 +1479,7 @@ static NSColor *dtxtCol;
|
|||
|
||||
[self setNextState];
|
||||
|
||||
if (controlView != nil)
|
||||
if ((controlView != nil) && [controlView canDraw])
|
||||
{
|
||||
NSWindow *cvWin = [controlView window];
|
||||
NSDate *limit = [NSDate dateWithTimeIntervalSinceNow: 0.1];
|
||||
|
|
Loading…
Reference in a new issue