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:
nico 1999-11-16 23:47:51 +00:00
parent ad38da4f2b
commit ccf7d02dd5

View file

@ -241,7 +241,11 @@
- (BOOL) isOpaque - (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); NSDrawButton(cellFrame, NSZeroRect);
} }
[controlView unlockFocus]; [controlView unlockFocus];
} }
[self drawInteriorWithFrame: cellFrame inView: controlView]; [self drawInteriorWithFrame: cellFrame inView: controlView];