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:
ericwa 2010-01-29 02:14:25 +00:00
parent 0f666924a3
commit b6dd322c45
2 changed files with 10 additions and 2 deletions

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