mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +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
2c328a83d5
commit
b53c941c37
2 changed files with 10 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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