mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +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
|
@ -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:):
|
||||
|
|
|
@ -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…
Reference in a new issue