From 2a35bb6397ab18d68ca74a06d79e6495819fcd3d Mon Sep 17 00:00:00 2001 From: ericwa Date: Wed, 21 Dec 2011 06:43:42 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ Source/NSBrowserCell.m | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9a7ec65aa..d212f44ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-20 Eric Wasylishen + + * Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:): + Restore code to draw the background when the cell is highligted + 2011-12-18 Eric Wasylishen * Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:): diff --git a/Source/NSBrowserCell.m b/Source/NSBrowserCell.m index dae005516..34b48ecb5 100644 --- a/Source/NSBrowserCell.m +++ b/Source/NSBrowserCell.m @@ -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