mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):
When highlighted, use -image if -alternateImage is nil. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34321 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d8ed82a8a8
commit
3445284ccc
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-12-18 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):
|
||||
When highlighted, use -image if -alternateImage is nil.
|
||||
|
||||
2011-12-18 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSTableView.m (-_isCellEditableColumn:row:): Tweak
|
||||
|
|
|
@ -283,19 +283,19 @@ static NSFont *_leafFont;
|
|||
{
|
||||
NSRect title_rect = cellFrame;
|
||||
NSImage *branch_image = nil;
|
||||
NSImage *cell_image = nil;
|
||||
NSImage *cell_image = [self image];
|
||||
|
||||
if (_cell.is_highlighted || _cell.state)
|
||||
{
|
||||
if (!_browsercell_is_leaf)
|
||||
branch_image = [object_getClass(self) highlightedBranchImage];
|
||||
cell_image = [self alternateImage];
|
||||
if (nil != [self alternateImage])
|
||||
cell_image = [self alternateImage];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!_browsercell_is_leaf)
|
||||
branch_image = [object_getClass(self) branchImage];
|
||||
cell_image = [self image];
|
||||
}
|
||||
|
||||
// Draw the branch image if there is one
|
||||
|
|
Loading…
Reference in a new issue