* 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
This commit is contained in:
Gregory John Casamento 2008-12-03 06:34:50 +00:00
parent 0f92239a0b
commit ccf577f687
2 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2008-12-03 01:38-EST Gregory John Casamento <greg_casamento@yahoo.com>
* 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 <greg_casamento@yahoo.com>
* Source/NSApplication.m: Always resize icon to 48x48 so that

View file

@ -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: ");
}