From ccf577f6871893eb90dd20d578ced78242177169 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Wed, 3 Dec 2008 06:34:50 +0000 Subject: [PATCH] * Source/GSInfoPanel.m: -[GSInfoPanel initWithDictionary:] don't show authors in the info panel if there are none given in the dictionary. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27199 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/GSInfoPanel.m | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a183c69fb..20af88f09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-03 01:38-EST Gregory John Casamento + + * Source/GSInfoPanel.m: -[GSInfoPanel initWithDictionary:] + don't show authors in the info panel if there are none given + in the dictionary. + 2008-12-03 01:11-EST Gregory John Casamento * Source/NSApplication.m: Always resize icon to 48x48 so that diff --git a/Source/GSInfoPanel.m b/Source/GSInfoPanel.m index 89ffb0b48..ac08394cd 100644 --- a/Source/GSInfoPanel.m +++ b/Source/GSInfoPanel.m @@ -313,9 +313,9 @@ new_label (NSString *value) if (nil_or_not_of_class (authors, [NSArray class])) { authors = value_from_info_plist_for_key (@"Authors"); - - if (nil_or_not_of_class (authors, [NSArray class])) - authors = [NSArray arrayWithObject: @"Unknown"]; + + // if (nil_or_not_of_class (authors, [NSArray class])) + // authors = [NSArray arrayWithObject: @"Unknown"]; } /* URL */ if (dictionary) @@ -389,7 +389,11 @@ new_label (NSString *value) [versionLabel setFont: smallFont]; [versionLabel sizeToFit]; - if ([authors count] == 1) + if ([authors count] == 0) + { + authorTitleLabel = new_label (@""); + } + else if ([authors count] == 1) { authorTitleLabel = new_label (@"Author: "); }