mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:30:37 +00:00
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:
parent
96d1677383
commit
5f688fbf6e
5 changed files with 170 additions and 112 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue