mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 18:30:58 +00:00
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:
parent
c2d12e304f
commit
d985b2bc6b
1 changed files with 14 additions and 8 deletions
|
@ -211,16 +211,22 @@
|
||||||
|
|
||||||
- (void)selectItemAtIndex:(int)index
|
- (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
|
- (void)selectItemWithTitle:(NSString *)title
|
||||||
|
|
Loading…
Reference in a new issue