mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:51:02 +00:00
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:
parent
0f666924a3
commit
b6dd322c45
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue