Fixed isOpaque to reflect the way we draw buttons.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5213 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-16 23:47:51 +00:00
parent e4c31a3a38
commit 54765435d2

View file

@ -241,7 +241,11 @@
- (BOOL) isOpaque
{
return !transparent && [self isBordered];
// MacOS-X says we should return !transparent && [self isBordered],
// but that's wrong in our case, since if there is no border,
// we draw the interior of the cell to fill completely the bounds.
// They are likely to draw differently.
return !transparent;
}
//
@ -386,7 +390,7 @@
{
NSDrawButton(cellFrame, NSZeroRect);
}
[controlView unlockFocus];
[controlView unlockFocus];
}
[self drawInteriorWithFrame: cellFrame inView: controlView];