Improvements for popupbuttons.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12946 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
michael 2002-03-01 23:25:06 +00:00
parent 96d1677383
commit 5f688fbf6e
5 changed files with 170 additions and 112 deletions

View file

@ -371,11 +371,6 @@ static NSImage *arrowImageH = nil;
[controlView lockFocus];
if (_mcell_belongs_to_popupbutton)
{
cellFrame.origin.x--;
}
if (_cell.is_highlighted && (_highlightsByMask & NSPushInCellMask))
{
NSDrawGrayBezel(cellFrame, NSZeroRect);
@ -576,16 +571,7 @@ static NSImage *arrowImageH = nil;
// Set cell's background color
[_backgroundColor set];
if (_mcell_belongs_to_popupbutton)
{
cellFrame.origin.x--;
NSRectFill(cellFrame);
cellFrame.origin.x++;
}
else
{
NSRectFill(cellFrame);
}
NSRectFill(cellFrame);
/*
* Determine the image and the title that will be