mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 19:48:42 +00:00
* 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:
parent
3445284ccc
commit
b2e98ecb59
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue