* Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):

Set file icons on browser cells in the open/save panels.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34322 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-12-19 01:00:07 +00:00
parent 3445284ccc
commit b2e98ecb59
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-12-18 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):
Set file icons on browser cells in the open/save panels.
2011-12-18 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSBrowserCell.m (-drawInteriorWithFrame:inView:):

View file

@ -1818,7 +1818,15 @@ createRowsForColumn: (int)column
cell = [matrix cellAtRow: addedRows column: 0];
[cell setStringValue: file];
{
NSImage *icon = [[ws iconForFile: pathAndFile] copy];
const CGFloat rowHeight = 16; // FIXME:
[icon setSize: NSMakeSize(rowHeight, rowHeight)];
[cell setImage: icon];
[icon release];
}
if (isDir)
[cell setLeaf: NO];
else