Temporary fix: redisplay the button when the selected item is changed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5045 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-10-21 14:19:45 +00:00
parent ad22faa6a2
commit 29e375485b

View file

@ -211,16 +211,22 @@
- (void)selectItemAtIndex:(int)index
{
if (index == -1)
if (popb_selectedItem != index)
{
popb_selectedItem = -1;
if (index == -1)
{
popb_selectedItem = -1;
}
else
{
popb_selectedItem = index;
}
// This works fine
[self setNeedsDisplay: YES];
// but replace it with the following
// [self synchronizeTitleAndSelectedItem];
// as soon as it works.
}
else
{
popb_selectedItem = index;
}
[self synchronizeTitleAndSelectedItem];
}
- (void)selectItemWithTitle:(NSString *)title