According to Gregory John Casamento <greg_casamento@yahoo.com> the

popup button does not change its enable state when the selected item
does. To adopt this behaviour all setEnable: calls have been
removed and one in [initWithCoder:] added that enables the popup
for all old encodings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-09-14 00:33:05 +00:00
parent 718622df26
commit a1b8af9d1e

View file

@ -102,7 +102,6 @@ static NSImage *_pbc_image[2];
if (item == _menuItem)
{
[self setEnabled: [[self menuItem] isEnabled]];
[[self controlView] setNeedsDisplay: YES];
}
}
@ -417,14 +416,13 @@ static NSImage *_pbc_image[2];
[_menuItem setImage: nil];
}
[super setMenuItem: item];
//[super setMenuItem: item];
ASSIGN (_menuItem, item);
if ([_menuItem image] == nil)
{
[_menuItem setImage: image];
}
[self setEnabled: [_menuItem isEnabled]];
}
// Dealing with selection
@ -871,6 +869,7 @@ static NSImage *_pbc_image[2];
[anItem setOnStateImage: nil];
[anItem setMixedStateImage: nil];
}
[self setEnabled: YES];
}
[self selectItem: selectedItem];