More keyed decoding. Button cell now doesn't fill interior.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18564 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2004-02-08 20:33:07 +00:00
parent 706213590f
commit e30172881a
7 changed files with 193 additions and 67 deletions

View file

@ -49,6 +49,7 @@
#include "AppKit/NSImage.h"
#include "AppKit/NSSound.h"
#include "AppKit/NSWindow.h"
#include "GNUstepGUI/GSDrawFunctions.h"
@implementation NSButtonCell
@ -619,11 +620,11 @@
// FIXME Should check the bezel and gradient style
if (_cell.is_highlighted && (_highlightsByMask & NSPushInCellMask))
{
NSDrawGrayBezel(cellFrame, NSZeroRect);
[GSDrawFunctions drawGrayBezel: cellFrame : NSZeroRect];
}
else
{
NSDrawButton(cellFrame, NSZeroRect);
[GSDrawFunctions drawButton: cellFrame : NSZeroRect];
}
}