mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +00:00
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:
parent
ad38da4f2b
commit
ccf7d02dd5
1 changed files with 6 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue