Treat NSButtonCell's with a bezel style as being non-opaque

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29434 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-01-29 02:14:25 +00:00
parent 2c328a83d5
commit b53c941c37
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2010-01-28 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSButtonCell.m -isOpaque: Return NO if the button cell has a
bezel style set. This is consistent with OS X, and fixes drawing
glitches seen in the GSTest NSButton test.
2010-01-28 Eric Wasylishen <ewasylishen@gmail.com>
* Headers/AppKit/NSButtonCell.h: Correct a typo:

View file

@ -624,11 +624,13 @@ typedef struct _GSButtonCellFlags
}
/**<p>Returns whether the NSButtonCell is opaque. Returns YES if the button
cell is not transparent and if the cell is bordered. NO otherwise</p>
cell is not transparent and if the cell is bordered and if there is no
bezel style, NO otherwise</p>
*/
- (BOOL) isOpaque
{
return !_buttoncell_is_transparent && _cell.is_bordered;
return !_buttoncell_is_transparent && _cell.is_bordered &&
_bezel_style == 0;
}
- (NSBezelStyle) bezelStyle