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:
nico 1999-10-21 14:19:45 +00:00
parent c2d12e304f
commit d985b2bc6b

View file

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