mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:30:38 +00:00
* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):
Restore code to draw the background when the cell is highligted git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f2485fcf7
commit
2a35bb6397
2 changed files with 11 additions and 0 deletions
|
@ -291,11 +291,17 @@ static NSFont *_leafFont;
|
|||
branch_image = [object_getClass(self) highlightedBranchImage];
|
||||
if (nil != [self alternateImage])
|
||||
cell_image = [self alternateImage];
|
||||
|
||||
// If we are highlighted, fill the background
|
||||
[[self highlightColorInView: controlView] setFill];
|
||||
NSRectFill(cellFrame);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!_browsercell_is_leaf)
|
||||
branch_image = [object_getClass(self) branchImage];
|
||||
|
||||
// (Don't fill the background)
|
||||
}
|
||||
|
||||
// Draw the branch image if there is one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue