Use file’s existing icon when zooming it

This commit is contained in:
Allan Odgaard
2013-01-19 11:28:22 +01:00
parent 6c05cae8ed
commit 19030a7586
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,8 @@
if(self = [super initWithContentRect:aRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])
{
NSImageView* imageView = [[[NSImageView alloc] initWithFrame:aRect] autorelease];
icon = [[icon copy] autorelease];
[icon setSize:NSMakeSize(128, 128)];
[imageView setImage:icon];
[imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[self setContentView:imageView];

View File

@@ -839,7 +839,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
}
for(FSItem* item in itemsToAnimate)
[OakZoomingIcon zoomIcon:[OakFileIconImage fileIconImageWithPath:item.path size:NSMakeSize(128, 128)] fromRect:[self iconFrameForEntry:item]];
[OakZoomingIcon zoomIcon:item.icon fromRect:[self iconFrameForEntry:item]];
if([urlsToOpen count])
[_delegate fileBrowser:self openURLs:urlsToOpen];
}