* 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:
Eric Wasylishen 2011-12-21 06:43:42 +00:00
parent b2e98ecb59
commit 52b39d8923
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-12-20 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):
Restore code to draw the background when the cell is highligted
2011-12-18 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):

View file

@ -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