mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 03:31:39 +00:00
* Source/NSCell.m (-highlight:withFrame:inView:):
Remove call to [controlView displayRect: cellFrame]; There was a comment saying it should be removed, and when combined with the -[NSButtonCell isOpaque] change, it was casuing scroller buttons to stay "stuck" down. * Source/NSBrowser.m (-isOpaque): * Source/NSButtonCell.m (-isOpaque): * Source/NSColorWell.m (-isOpaque): Force -isOpaque to return NO, because it's possible to make all of these controls semitransparent with theme tiles. This was visible with the Narcissus theme (svn://svn.gna.org/svn/etoile/trunk/Etoile/Themes/Narcissus.theme) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37164 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d3a8560cc5
commit
ef5f2cf19f
5 changed files with 33 additions and 8 deletions
|
@ -679,14 +679,15 @@ typedef struct _GSButtonCellFlags
|
|||
_buttoncell_is_transparent = flag;
|
||||
}
|
||||
|
||||
/**<p>Returns whether the NSButtonCell is opaque. Returns YES if the button
|
||||
cell is not transparent and if the cell is bordered and if there is no
|
||||
bezel style, NO otherwise</p>
|
||||
*/
|
||||
/**<p>Returns whether the NSButtonCell is opaque. Currently always
|
||||
returns NO</p>*/
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return !_buttoncell_is_transparent && _cell.is_bordered &&
|
||||
_bezel_style == 0;
|
||||
// May not be opaque, due to themes
|
||||
return NO;
|
||||
|
||||
// return !_buttoncell_is_transparent && _cell.is_bordered &&
|
||||
// _bezel_style == 0;
|
||||
}
|
||||
|
||||
- (NSBezelStyle) bezelStyle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue