Try Fred's idea for theme image lookup improvement.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-11-12 08:33:35 +00:00
parent e61577a98f
commit 79e04b545a
3 changed files with 255 additions and 250 deletions

View file

@ -3836,9 +3836,14 @@ struct _DelegateWrapper
{
NSRect iconContentRect = GSGetIconFrame(_app_icon_window);
NSRect iconFrame = [_app_icon_window frameRectForContentRect: iconContentRect];
NSRect iconViewFrame = NSMakeRect(0, 0, iconContentRect.size.width, iconContentRect.size.height);
NSRect iconContentRect;
NSRect iconFrame;
NSRect iconViewFrame;
iconContentRect = GSGetIconFrame(_app_icon_window);
iconFrame = [_app_icon_window frameRectForContentRect: iconContentRect];
iconViewFrame = NSMakeRect(0, 0,
iconContentRect.size.width, iconContentRect.size.height);
[_app_icon_window setFrame: iconFrame display: YES];
iv = [[NSAppIconView alloc] initWithFrame: iconViewFrame];