From 21c9e0dca85345c8da72fe1ec9087415cf7a8eff Mon Sep 17 00:00:00 2001 From: rfm Date: Thu, 10 Sep 2009 10:15:32 +0000 Subject: [PATCH] Fix to display correct app icon. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28651 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Source/GSInfoPanel.m | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1639b8290..20a5ef7f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-09-10 Richard Frith-Macdonald + + * Source/GSInfoPanel.m: When trying to locate image, try + the applicationIconImage method before trying the image + named NSApplicationIcon (the generic app icon). That way we get + the actual icon used by the application. + 2009-09-09 Fred Kiefer * Source/NSView.m (-_lockFocusInContext:inRect:): Correct the diff --git a/Source/GSInfoPanel.m b/Source/GSInfoPanel.m index c72531a5d..1cce11499 100644 --- a/Source/GSInfoPanel.m +++ b/Source/GSInfoPanel.m @@ -282,10 +282,9 @@ new_label (NSString *value) if (nil_or_not_of_class (icon, [NSImage class])) { - icon = [NSImage imageNamed: @"NSApplicationIcon"]; - + icon = [NSApp applicationIconImage]; if (nil_or_not_of_class (icon, [NSImage class])) - icon = [NSApp applicationIconImage]; + icon = [NSImage imageNamed: @"NSApplicationIcon"]; } /* Release */ if (dictionary)